27 lines
431 B
Nix
27 lines
431 B
Nix
|
{
|
||
|
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 ];
|
||
|
};
|
||
|
};
|
||
|
}
|