From cd78ec13ab828d0cda1e533e035c2d0948a9eaa4 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Sun, 2 Jan 2022 00:55:27 +0100 Subject: nixos/lightdm: changed minimum-uid to 1000 This is done to reflect changes in 0e23a175de3687df8232fe118cbe87f04228ff28 --- nixos/modules/services/x11/display-managers/lightdm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/modules/services/x11/display-managers/lightdm.nix b/nixos/modules/services/x11/display-managers/lightdm.nix index 84b75c83aeab..c0b5e3ff13da 100644 --- a/nixos/modules/services/x11/display-managers/lightdm.nix +++ b/nixos/modules/services/x11/display-managers/lightdm.nix @@ -32,7 +32,7 @@ let usersConf = writeText "users.conf" '' [UserList] - minimum-uid=500 + minimum-uid=1000 hidden-users=${concatStringsSep " " dmcfg.hiddenUsers} hidden-shells=/run/current-system/sw/bin/nologin ''; -- cgit v1.2.3 From db74bf537556218e7fe48c03729b6ab9bff26b6c Mon Sep 17 00:00:00 2001 From: eyjhb Date: Sun, 2 Jan 2022 00:57:13 +0100 Subject: nixos/users: isSystemUser below 1000 above 400 To reflect changes done in 23d920c8f0d8d790fc69e155acbe9342853cc46a --- nixos/modules/config/users-groups.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index a34d28143418..19efad4b9ce6 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -96,7 +96,7 @@ let only has an effect if is , in which case it determines whether the user's UID is allocated in the range for system users - (below 500) or in the range for normal users (starting at + (below 1000) or in the range for normal users (starting at 1000). Exactly one of isNormalUser and isSystemUser must be true. @@ -635,7 +635,7 @@ in { { assertion = let xor = a: b: a && !b || b && !a; - isEffectivelySystemUser = user.isSystemUser || (user.uid != null && user.uid < 500); + isEffectivelySystemUser = user.isSystemUser || (user.uid != null && user.uid < 1000); in xor isEffectivelySystemUser user.isNormalUser; message = '' Exactly one of users.users.${user.name}.isSystemUser and users.users.${user.name}.isNormalUser must be set. -- cgit v1.2.3