1
0
Fork 0
nix-configuration/modules/services/boinc.nix

31 lines
559 B
Nix
Raw Normal View History

2024-05-21 00:52:57 +00:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.host.services.boinc;
in
{
options = {
host.services.boinc.enable = lib.mkEnableOption (
lib.mdDoc "Enables BOINC distributed computing service."
);
};
config = lib.mkIf cfg.enable {
services.boinc = {
enable = true;
package = pkgs.boinc-headless;
dataDir = "/var/lib/boinc";
extraEnvPackages = [ pkgs.ocl-icd ];
2024-05-27 00:04:43 +00:00
allowRemoteGuiRpc = true;
2024-05-21 00:52:57 +00:00
};
2024-05-27 00:04:43 +00:00
# Allow connections via BOINC Manager
networking.firewall.allowedTCPPorts = [ 31416 ];
2024-05-21 00:52:57 +00:00
};
}