git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/nntp-proxy: define group, fix after #133166
commitaf5ba65b9f4b9fee755fb6701400b7d61d1804e3 authorGuillaume Girol <symphorien+git@xlumurb.eu> dateFri 17 Sep 2021, 12:00 (5 years ago) parentfa3664a
2 files changed+8−8
nixos/modules/misc/ids.nix+1−1 nixos/modules/services/networking/nntp-proxy.nix+7−7
nixos/modules/misc/ids.nix+1−1
@@ -262,7 +262,7 @@ in
262262 pdnsd = 229;
263263 octoprint = 230;
264264 avahi-autoipd = 231;
265− nntp-proxy = 232;
265+ # nntp-proxy = 232; #dynamically allocated as of 2021-09-17
266266 mjpg-streamer = 233;
267267 #radicale = 234;# dynamically allocated as of 2021-09-03
268268 hydra-queue-runner = 235;
nixos/modules/services/networking/nntp-proxy.nix+7−7
@@ -6,8 +6,6 @@ let
66
77 inherit (pkgs) nntp-proxy;
88
9− proxyUser = "nntp-proxy";
10−
119 cfg = config.services.nntp-proxy;
1210
1311 configBool = b: if b then "TRUE" else "FALSE";
@@ -210,16 +208,18 @@ in
210208
211209 config = mkIf cfg.enable {
212210
213− users.users.${proxyUser} =
214− { uid = config.ids.uids.nntp-proxy;
215− description = "NNTP-Proxy daemon user";
216− };
211+ users.users.nntp-proxy = {
212+ isSystemUser = true;
213+ group = "nntp-proxy";
214+ description = "NNTP-Proxy daemon user";
215+ };
216+ users.groups.nntp-proxy = {};
217217
218218 systemd.services.nntp-proxy = {
219219 description = "NNTP proxy";
220220 after = [ "network.target" "nss-lookup.target" ];
221221 wantedBy = [ "multi-user.target" ];
222− serviceConfig = { User="${proxyUser}"; };
222+ serviceConfig = { User="nntp-proxy"; };
223223 serviceConfig.ExecStart = "${nntp-proxy}/bin/nntp-proxy ${confFile}";
224224 preStart = ''
225225 if [ ! \( -f ${cfg.sslCert} -a -f ${cfg.sslKey} \) ]; then