mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
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:
parent
cb6b9c52aa
commit
fc8011ad8d
@ -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 ++ [
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user