added common environment file, fixed sudo issue

This commit is contained in:
2025-06-27 00:05:10 -04:00
parent fefa6dd3de
commit 30a72d9e74
5 changed files with 43 additions and 34 deletions

View File

@ -5,10 +5,6 @@
hostname,
...
} @ args: {
imports = [
../security/sudo.nix
];
networking.hostName = hostname;
# Don't forget to set a password with passwd!
@ -27,7 +23,19 @@
})
];
security.sudo.needsPassword = false;
security.sudo = {
extraRules = [
{
groups = [ "wheel" ];
commands = [
{
command = "ALL";
options = [ "NOPASSWD" "SETENV" ];
}
];
}
];
};
users.groups.wyatt = {};