🔒 [pi4] Do not require password for sudo️
This commit is contained in:
@ -1,7 +1,22 @@
|
||||
{ systemConfig, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./firewall.nix
|
||||
];
|
||||
|
||||
security.sudo.extraRules = [
|
||||
{
|
||||
users = [ systemConfig.username ];
|
||||
runAs = "ALL:ALL";
|
||||
commands = [
|
||||
{
|
||||
command = "ALL";
|
||||
options = [ "NOPASSWD" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
services.pcscd.enable = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user