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

main
Guillaume Girol 3 years ago committed by Yuka
parent 3e9520f414
commit ca2db671ba
  1. 2
      nixos/modules/misc/ids.nix
  2. 6
      nixos/modules/services/misc/cgminer.nix

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

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

Loading…
Cancel
Save