first commit
This commit is contained in:
commit
f9cc68899b
7 changed files with 228 additions and 0 deletions
27
modules/users.nix
Normal file
27
modules/users.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
users.users.sascha = {
|
||||
isNormalUser = true;
|
||||
home = "/home/sascha";
|
||||
extraGroups = [
|
||||
"wheel"
|
||||
"networkmanager"
|
||||
"audio"
|
||||
"video"
|
||||
];
|
||||
};
|
||||
|
||||
security.sudo.execWheelOnly = true;
|
||||
|
||||
# don't require password for sudo
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ "sascha" ];
|
||||
commands = [
|
||||
{
|
||||
command = "ALL";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue