summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2021-09-17 12:00:00 +0000
committerYuka <yuka@yuka.dev>2021-09-18 14:42:08 +0200
commitca2db671badf066911a3805bf00e5c3adce66909 (patch)
tree7a9c6f3d328f57845b117c249d8ce6ec7a347d99
parent3e9520f414e438b5f4911838713e34d11268163f (diff)
downloadnixpkgs-ca2db671badf066911a3805bf00e5c3adce66909.tar
nixpkgs-ca2db671badf066911a3805bf00e5c3adce66909.tar.gz
nixpkgs-ca2db671badf066911a3805bf00e5c3adce66909.tar.bz2
nixpkgs-ca2db671badf066911a3805bf00e5c3adce66909.tar.lz
nixpkgs-ca2db671badf066911a3805bf00e5c3adce66909.tar.xz
nixpkgs-ca2db671badf066911a3805bf00e5c3adce66909.tar.zst
nixpkgs-ca2db671badf066911a3805bf00e5c3adce66909.zip
nixos/cgminer: define group, fix eval after #133166
-rw-r--r--nixos/modules/misc/ids.nix2
-rw-r--r--nixos/modules/services/misc/cgminer.nix6
2 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix
index 30a9e5cf6ed..e8abd7178b8 100644
--- a/nixos/modules/misc/ids.nix
+++ b/nixos/modules/misc/ids.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
diff --git a/nixos/modules/services/misc/cgminer.nix b/nixos/modules/services/misc/cgminer.nix
index 96e84f84e02..5afc1546efa 100644
--- a/nixos/modules/services/misc/cgminer.nix
+++ b/nixos/modules/services/misc/cgminer.nix
@@ -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 ];