diff --git a/modules/polkit.nix b/modules/polkit.nix index 05c1b20..55b877a 100644 --- a/modules/polkit.nix +++ b/modules/polkit.nix @@ -1,6 +1,21 @@ { den.aspects.polkit = { nixos = { + security.sudo = { + enable = true; + extraRules = [ + { + commands = [ + { + command = "ALL"; + options = [ "NOPASSWD" ]; + } + ]; + groups = [ "wheel" ]; + } + ]; + }; + security.polkit = { enable = true; adminIdentities = [ "unix-group:wheel" ];