From 38066e07da283f6f8c4b6827ca8841e536bee694 Mon Sep 17 00:00:00 2001 From: Andre Date: Sat, 14 Sep 2024 16:05:10 -0400 Subject: [PATCH] Hevana: disable BOINC for now --- hosts/Hevana/default.nix | 5 ++++- modules/services/boinc.nix | 11 +++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/hosts/Hevana/default.nix b/hosts/Hevana/default.nix index 775fa3a..b416917 100644 --- a/hosts/Hevana/default.nix +++ b/hosts/Hevana/default.nix @@ -127,7 +127,10 @@ in onCalendar = "daily"; user = config.users.users.aires.name; }; - boinc.enable = true; + boinc = { + enable = false; + home = "${services-root}/boinc"; + }; duplicacy-web = { enable = true; home = "/storage/backups/settings/Haven"; diff --git a/modules/services/boinc.nix b/modules/services/boinc.nix index e9e2256..422ef18 100644 --- a/modules/services/boinc.nix +++ b/modules/services/boinc.nix @@ -10,14 +10,21 @@ let in { 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 { services.boinc = { enable = true; package = pkgs.boinc-headless; - dataDir = "/var/lib/boinc"; + dataDir = cfg.home; extraEnvPackages = [ pkgs.ocl-icd ] ++ lib.optionals config.aux.system.gpu.nvidia.enable [ pkgs.linuxPackages.nvidia_x11 ];