remove unneded options, add users.nix
This commit is contained in:
parent
32403d2a2a
commit
1bb25bda0e
4 changed files with 34 additions and 30 deletions
22
modules/other/users.nix
Normal file
22
modules/other/users.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{config, ...}: let
|
||||
inherit (config.meta.mainUser) username;
|
||||
in {
|
||||
users = {
|
||||
mutableUsers = false;
|
||||
users = {
|
||||
${username} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networking"
|
||||
"video"
|
||||
"networkmanager"
|
||||
"audio"
|
||||
"nix"
|
||||
];
|
||||
hashedPasswordFile = "/etc/passwords/cr";
|
||||
};
|
||||
root.hashedPasswordFile = "/persist/passwords/root";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue