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
This commit is contained in:
Pascal Bach 2020-03-25 13:26:31 +01:00
parent bb549ca2d4
commit 2e5835c6b5

View File

@ -99,14 +99,16 @@ in
environment.systemPackages = [cfg.package]; environment.systemPackages = [cfg.package];
users.users.boinc = { users.users.boinc = {
group = "boinc";
createHome = false; createHome = false;
description = "BOINC Client"; description = "BOINC Client";
home = cfg.dataDir; home = cfg.dataDir;
isSystemUser = true; isSystemUser = true;
}; };
users.groups.boinc = {};
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"d '${cfg.dataDir}' - boinc - - -" "d '${cfg.dataDir}' - boinc boinc - -"
]; ];
systemd.services.boinc = { systemd.services.boinc = {