git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/logcheck: define group, fix after #133166
commitfa3664a176b36d731b5673d5674a8b81229acce1 authorGuillaume Girol <symphorien+git@xlumurb.eu> dateFri 17 Sep 2021, 12:00 (5 years ago) parentcd2b24c
2 files changed+6−2
nixos/modules/misc/ids.nix+1−1 nixos/modules/services/logging/logcheck.nix+5−1
nixos/modules/misc/ids.nix+1−1
@@ -139,7 +139,7 @@ in
139139 #users = 100; # unused
140140 # cgminer = 101; #dynamically allocated as of 2021-09-17
141141 munin = 102;
142− logcheck = 103;
142+ #logcheck = 103; #dynamically allocated as of 2021-09-17
143143 #nix-ssh = 104; #dynamically allocated as of 2021-09-03
144144 dictd = 105;
145145 couchdb = 106;
nixos/modules/services/logging/logcheck.nix+5−1
@@ -215,12 +215,16 @@ in
215215
216216 users.users = optionalAttrs (cfg.user == "logcheck") {
217217 logcheck = {
218− uid = config.ids.uids.logcheck;
218+ group = "logcheck";
219+ isSystemUser = true;
219220 shell = "/bin/sh";
220221 description = "Logcheck user account";
221222 extraGroups = cfg.extraGroups;
222223 };
223224 };
225+ users.groups = optionalAttrs (cfg.user == "logcheck") {
226+ logcheck = {};
227+ };
224228
225229 system.activationScripts.logcheck = ''
226230 mkdir -m 700 -p /var/{lib,lock}/logcheck