mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 20:55:31 +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
2 changed files with 6 additions and 3 deletions
|
@ -282,8 +282,8 @@ in
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
users.extraUsers.sshd =
|
users.extraUsers.sshd =
|
||||||
{ description = "SSH privilege separation user";
|
{ isSystemUser = true;
|
||||||
home = "/var/empty";
|
description = "SSH privilege separation user";
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc = authKeysFiles ++ [
|
environment.etc = authKeysFiles ++ [
|
||||||
|
|
|
@ -42,7 +42,10 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
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 =
|
systemd.services.nscd =
|
||||||
{ description = "Name Service Cache Daemon";
|
{ description = "Name Service Cache Daemon";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue