nixos/cgminer: define group, fix eval after #133166

This commit is contained in:
Guillaume Girol 2021-09-17 12:00:00 +00:00 committed by Yuka
parent 3e9520f414
commit ca2db671ba
2 changed files with 6 additions and 2 deletions

View file

@ -137,7 +137,7 @@ in
#mongodb = 98; #dynamically allocated as of 2021-09-03 #mongodb = 98; #dynamically allocated as of 2021-09-03
#openldap = 99; # dynamically allocated as of PR#94610 #openldap = 99; # dynamically allocated as of PR#94610
#users = 100; # unused #users = 100; # unused
cgminer = 101; # cgminer = 101; #dynamically allocated as of 2021-09-17
munin = 102; munin = 102;
logcheck = 103; logcheck = 103;
#nix-ssh = 104; #dynamically allocated as of 2021-09-03 #nix-ssh = 104; #dynamically allocated as of 2021-09-03

View file

@ -110,10 +110,14 @@ in
users.users = optionalAttrs (cfg.user == "cgminer") { users.users = optionalAttrs (cfg.user == "cgminer") {
cgminer = { cgminer = {
uid = config.ids.uids.cgminer; isSystemUser = true;
group = "cgminer";
description = "Cgminer user"; description = "Cgminer user";
}; };
}; };
users.groups = optionalAttrs (cfg.user == "cgminer") {
cgminer = {};
};
environment.systemPackages = [ cfg.package ]; environment.systemPackages = [ cfg.package ];