Allow password-less root for Bulwark

This commit is contained in:
Tyler Starr 2023-10-08 21:13:29 -07:00
parent 0458c138b1
commit c1af411db2
2 changed files with 10 additions and 1 deletions

View File

@ -55,6 +55,15 @@
extraGroups = [ "dialout" "wheel" "docker" "libvirtd" ]; # Enable sudo for the user.
};
# Password-less root
security.sudo.extraRules = [{
users = [ "${user}" ];
commands = [{
command = "ALL" ;
options= [ "NOPASSWD" ];
}];
}];
# List packages installed in system profile.
environment.systemPackages = with pkgs; [
# One-off stable packages

View File

@ -63,7 +63,7 @@
users = [ "${user}" ];
commands = [{
command = "ALL" ;
options= [ "NOPASSWD" ]; # "SETENV" # Adding the following could be a good idea
options= [ "NOPASSWD" ];
}];
}];