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/networking | |
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/networking')
-rw-r--r-- | nixos/modules/services/networking/bird.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/networking/ncdns.nix | 6 | ||||
-rw-r--r-- | nixos/modules/services/networking/pixiecore.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/networking/pleroma.nix | 1 |
4 files changed, 7 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/bird.nix b/nixos/modules/services/networking/bird.nix index 6d7e7760d94..1923afdf83f 100644 --- a/nixos/modules/services/networking/bird.nix +++ b/nixos/modules/services/networking/bird.nix @@ -73,6 +73,7 @@ let users.${variant} = { description = "BIRD Internet Routing Daemon user"; group = variant; + isSystemUser = true; }; groups.${variant} = {}; }; diff --git a/nixos/modules/services/networking/ncdns.nix b/nixos/modules/services/networking/ncdns.nix index c1832ad1752..d30fe0f6f6d 100644 --- a/nixos/modules/services/networking/ncdns.nix +++ b/nixos/modules/services/networking/ncdns.nix @@ -243,8 +243,10 @@ in xlog.journal = true; }; - users.users.ncdns = - { description = "ncdns daemon user"; }; + users.users.ncdns = { + isSystemUser = true; + description = "ncdns daemon user"; + }; systemd.services.ncdns = { description = "ncdns daemon"; diff --git a/nixos/modules/services/networking/pixiecore.nix b/nixos/modules/services/networking/pixiecore.nix index 85aa40784af..d2642c82c2d 100644 --- a/nixos/modules/services/networking/pixiecore.nix +++ b/nixos/modules/services/networking/pixiecore.nix @@ -93,6 +93,7 @@ in users.users.pixiecore = { description = "Pixiecore daemon user"; group = "pixiecore"; + isSystemUser = true; }; networking.firewall = mkIf cfg.openFirewall { diff --git a/nixos/modules/services/networking/pleroma.nix b/nixos/modules/services/networking/pleroma.nix index 9b2bf9f6124..2687230a158 100644 --- a/nixos/modules/services/networking/pleroma.nix +++ b/nixos/modules/services/networking/pleroma.nix @@ -75,6 +75,7 @@ in { description = "Pleroma user"; home = cfg.stateDir; extraGroups = [ cfg.group ]; + isSystemUser = true; }; groups."${cfg.group}" = {}; }; |