first commit

This commit is contained in:
Alexander Lampalzer 2025-05-29 09:29:43 +02:00
commit f9cc68899b
Signed by: alexander.lampalzer
GPG key ID: 20879CCACD5CD670
7 changed files with 228 additions and 0 deletions

27
modules/users.nix Normal file
View 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" ];
}
];
}
];
}