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:
committed by
a-kenji
parent
2b3c5b0524
commit
c3f26b3728
@@ -73,8 +73,8 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
users.mutableUsers = false;
|
||||
users.users.${settings.user} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = settings.groups;
|
||||
|
||||
hashedPasswordFile =
|
||||
@@ -122,4 +122,11 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
perMachine = {
|
||||
nixosModule = {
|
||||
# Immutable users to ensure that this module has exclusive control over the users.
|
||||
users.mutableUsers = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -23,6 +23,5 @@
|
||||
"video"
|
||||
"input"
|
||||
];
|
||||
uid = 1000;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
outputs =
|
||||
inputs@{
|
||||
self,
|
||||
flake-parts,
|
||||
...
|
||||
}:
|
||||
|
||||
Reference in New Issue
Block a user