From bb549ca2d489bd6dbc8d45504573dcb6242eae20 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Wed, 25 Mar 2020 12:45:12 +0100 Subject: [PATCH 1/2] nixos/boinc: log to journal instead of log file --- nixos/modules/services/computing/boinc/client.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/computing/boinc/client.nix b/nixos/modules/services/computing/boinc/client.nix index a7edac02538..fc5bcddfb7c 100644 --- a/nixos/modules/services/computing/boinc/client.nix +++ b/nixos/modules/services/computing/boinc/client.nix @@ -114,7 +114,7 @@ in after = ["network.target"]; wantedBy = ["multi-user.target"]; script = '' - ${fhsEnvExecutable} --dir ${cfg.dataDir} --redirectio ${allowRemoteGuiRpcFlag} + ${fhsEnvExecutable} --dir ${cfg.dataDir} ${allowRemoteGuiRpcFlag} ''; serviceConfig = { User = "boinc"; From 2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Wed, 25 Mar 2020 13:26:31 +0100 Subject: [PATCH 2/2] nixos/boinc: create boinc group This allows users that are members of the boinc group to interact with the boinc service by running: boincmgr -d /var/lib/boinc --- nixos/modules/services/computing/boinc/client.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/computing/boinc/client.nix b/nixos/modules/services/computing/boinc/client.nix index fc5bcddfb7c..7becf624071 100644 --- a/nixos/modules/services/computing/boinc/client.nix +++ b/nixos/modules/services/computing/boinc/client.nix @@ -99,14 +99,16 @@ in environment.systemPackages = [cfg.package]; users.users.boinc = { + group = "boinc"; createHome = false; description = "BOINC Client"; home = cfg.dataDir; isSystemUser = true; }; + users.groups.boinc = {}; systemd.tmpfiles.rules = [ - "d '${cfg.dataDir}' - boinc - - -" + "d '${cfg.dataDir}' - boinc boinc - -" ]; systemd.services.boinc = {