summary refs log tree commit diff
path: root/nixos/modules/services/computing
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@nextrem.ch>2020-03-25 13:26:31 +0100
committerPascal Bach <pascal.bach@nextrem.ch>2020-03-25 13:26:31 +0100
commit2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee (patch)
treeee2d91c8281c0888f60d5c4729d3b295bb6658e6 /nixos/modules/services/computing
parentbb549ca2d489bd6dbc8d45504573dcb6242eae20 (diff)
downloadnixpkgs-2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee.tar
nixpkgs-2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee.tar.gz
nixpkgs-2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee.tar.bz2
nixpkgs-2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee.tar.lz
nixpkgs-2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee.tar.xz
nixpkgs-2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee.tar.zst
nixpkgs-2e5835c6b5a02f0e52eb047ba5f901ba091ba1ee.zip
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
Diffstat (limited to 'nixos/modules/services/computing')
-rw-r--r--nixos/modules/services/computing/boinc/client.nix4
1 files changed, 3 insertions, 1 deletions
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 = {