Modules/users: add isNormalUser true

NormalUsers get:
- Home directory
- Can login

This is expected for users created through this module. We can make it configurable if the use arises
This commit is contained in:
Johannes Kirschbauer
2025-07-11 16:32:16 +02:00
parent ac745a1740
commit b47c85fdaa
3 changed files with 8 additions and 3 deletions

View File

@@ -73,8 +73,8 @@
... ...
}: }:
{ {
users.mutableUsers = false;
users.users.${settings.user} = { users.users.${settings.user} = {
isNormalUser = true;
extraGroups = settings.groups; extraGroups = settings.groups;
hashedPasswordFile = hashedPasswordFile =
@@ -122,4 +122,11 @@
}; };
}; };
}; };
perMachine = {
nixosModule = {
# Immutable users to ensure that this module has exclusive control over the users.
users.mutableUsers = false;
};
};
} }

View File

@@ -23,6 +23,5 @@
"video" "video"
"input" "input"
]; ];
uid = 1000;
}; };
} }

View File

@@ -6,7 +6,6 @@
outputs = outputs =
inputs@{ inputs@{
self,
flake-parts, flake-parts,
... ...
}: }: