diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index c5d44223ecf8..061f51ccda7b 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -7,7 +7,7 @@ let ids = config.ids; cfg = config.users; - nonUidUsers = filterAttrs (n: u: u.uid == null) cfg.extraUsers; + nonUidUsers = filterAttrs (n: u: u.createUser && u.uid == null) cfg.extraUsers; nonGidGroups = filterAttrs (n: g: g.gid == null) cfg.extraGroups; passwordDescription = ''