nixos/cgminer: define group, fix eval after #133166
This commit is contained in:
parent
3e9520f414
commit
ca2db671ba
|
@ -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
|
||||||
|
|
|
@ -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 ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue