From 2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Wed, 25 Mar 2020 13:26:31 +0100 Subject: [PATCH] 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 fc5bcddfb7cd..7becf6240710 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 = {