diff --git a/nixos/modules/misc/ids.nix b/nixos/modules/misc/ids.nix index ef180be9718..0319c5688fb 100644 --- a/nixos/modules/misc/ids.nix +++ b/nixos/modules/misc/ids.nix @@ -203,11 +203,9 @@ sddm = 175; tss = 176; memcached = 177; - nscd = 178; ntp = 179; zabbix = 180; redis = 181; - sshd = 182; unifi = 183; uptimed = 184; zope2 = 185; @@ -399,11 +397,9 @@ sddm = 175; tss = 176; #memcached = 177; # unused - #nscd = 178; # unused #ntp = 179; # unused #zabbix = 180; # unused #redis = 181; # unused - #sshd = 182; # unused #unifi = 183; # unused #uptimed = 184; # unused #zope2 = 185; # unused diff --git a/nixos/modules/services/networking/ssh/sshd.nix b/nixos/modules/services/networking/ssh/sshd.nix index b2740bd33b7..17228452bdc 100644 --- a/nixos/modules/services/networking/ssh/sshd.nix +++ b/nixos/modules/services/networking/ssh/sshd.nix @@ -281,10 +281,8 @@ in config = mkIf cfg.enable { - users.extraUsers = singleton - { name = "sshd"; - uid = config.ids.uids.sshd; - description = "SSH privilege separation user"; + users.extraUsers.sshd = + { description = "SSH privilege separation user"; home = "/var/empty"; }; diff --git a/nixos/modules/services/system/nscd.nix b/nixos/modules/services/system/nscd.nix index 0879d9b85bd..caedc2e4217 100644 --- a/nixos/modules/services/system/nscd.nix +++ b/nixos/modules/services/system/nscd.nix @@ -42,11 +42,7 @@ in config = mkIf cfg.enable { - users.extraUsers = singleton - { name = "nscd"; - uid = config.ids.uids.nscd; - description = "Name service cache daemon user"; - }; + users.extraUsers.nscd.description = "Name service cache daemon user"; systemd.services.nscd = { description = "Name Service Cache Daemon";