added common environment file, fixed sudo issue
This commit is contained in:
@ -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 = {};
|
||||
|
||||
|
Reference in New Issue
Block a user