1
0
Fork 0

Hevana: disable BOINC for now

This commit is contained in:
Aires 2024-09-14 16:05:10 -04:00
parent e20f636bfb
commit 38066e07da
2 changed files with 13 additions and 3 deletions

View file

@ -127,7 +127,10 @@ in
onCalendar = "daily"; onCalendar = "daily";
user = config.users.users.aires.name; user = config.users.users.aires.name;
}; };
boinc.enable = true; boinc = {
enable = false;
home = "${services-root}/boinc";
};
duplicacy-web = { duplicacy-web = {
enable = true; enable = true;
home = "/storage/backups/settings/Haven"; home = "/storage/backups/settings/Haven";

View file

@ -10,14 +10,21 @@ let
in in
{ {
options = { options = {
aux.system.services.boinc.enable = lib.mkEnableOption "Enables BOINC distributed computing service."; aux.system.services.boinc = {
enable = lib.mkEnableOption "Enables BOINC distributed computing service.";
home = lib.mkOption {
default = "/var/lib/boinc";
type = lib.types.str;
description = "Where to store BOINC's files";
};
};
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.boinc = { services.boinc = {
enable = true; enable = true;
package = pkgs.boinc-headless; package = pkgs.boinc-headless;
dataDir = "/var/lib/boinc"; dataDir = cfg.home;
extraEnvPackages = [ extraEnvPackages = [
pkgs.ocl-icd pkgs.ocl-icd
] ++ lib.optionals config.aux.system.gpu.nvidia.enable [ pkgs.linuxPackages.nvidia_x11 ]; ] ++ lib.optionals config.aux.system.gpu.nvidia.enable [ pkgs.linuxPackages.nvidia_x11 ];