Ensure that nscd, sshd are created as system users

c0f70b4694 removed the fixed uid
assignment, but then it becomes necessary to set isSystemUser.

http://hydra.nixos.org/build/22182588
This commit is contained in:
Eelco Dolstra 2015-05-13 16:22:53 +02:00
parent cb6b9c52aa
commit fc8011ad8d
2 changed files with 6 additions and 3 deletions

View File

@ -282,8 +282,8 @@ in
config = mkIf cfg.enable {
users.extraUsers.sshd =
{ description = "SSH privilege separation user";
home = "/var/empty";
{ isSystemUser = true;
description = "SSH privilege separation user";
};
environment.etc = authKeysFiles ++ [

View File

@ -42,7 +42,10 @@ in
config = mkIf cfg.enable {
users.extraUsers.nscd.description = "Name service cache daemon user";
users.extraUsers.nscd =
{ isSystemUser = true;
description = "Name service cache daemon user";
};
systemd.services.nscd =
{ description = "Name Service Cache Daemon";