@@ -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