diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2021-03-07 14:54:00 +0100 |
---|---|---|
committer | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2021-04-14 20:40:00 +0200 |
commit | 7a87973b4ced86e1ba94ee84449979d6afebc9ea (patch) | |
tree | fca832b3d43925bd5d420ea083671d662a97e5fe /nixos/modules/services/security/privacyidea.nix | |
parent | 311ceed827f531f88f46222920cd1ebb2c101f73 (diff) | |
download | nixpkgs-7a87973b4ced86e1ba94ee84449979d6afebc9ea.tar nixpkgs-7a87973b4ced86e1ba94ee84449979d6afebc9ea.tar.gz nixpkgs-7a87973b4ced86e1ba94ee84449979d6afebc9ea.tar.bz2 nixpkgs-7a87973b4ced86e1ba94ee84449979d6afebc9ea.tar.lz nixpkgs-7a87973b4ced86e1ba94ee84449979d6afebc9ea.tar.xz nixpkgs-7a87973b4ced86e1ba94ee84449979d6afebc9ea.tar.zst nixpkgs-7a87973b4ced86e1ba94ee84449979d6afebc9ea.zip |
nixos/users: require one of users.users.name.{isSystemUser,isNormalUser}
As the only consequence of isSystemUser is that if the uid is null then it's allocated below 500, if a user has uid = something below 500 then we don't require isSystemUser to be set. Motivation: https://github.com/NixOS/nixpkgs/issues/112647
Diffstat (limited to 'nixos/modules/services/security/privacyidea.nix')
-rw-r--r-- | nixos/modules/services/security/privacyidea.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/security/privacyidea.nix b/nixos/modules/services/security/privacyidea.nix index f7b40089a93..2696dca4c76 100644 --- a/nixos/modules/services/security/privacyidea.nix +++ b/nixos/modules/services/security/privacyidea.nix @@ -264,6 +264,7 @@ in users.users.privacyidea = mkIf (cfg.user == "privacyidea") { group = cfg.group; + isSystemUser = true; }; users.groups.privacyidea = mkIf (cfg.group == "privacyidea") {}; @@ -294,6 +295,7 @@ in users.users.pi-ldap-proxy = mkIf (cfg.ldap-proxy.user == "pi-ldap-proxy") { group = cfg.ldap-proxy.group; + isSystemUser = true; }; users.groups.pi-ldap-proxy = mkIf (cfg.ldap-proxy.group == "pi-ldap-proxy") {}; |