diff --git a/configuration.nix b/configuration.nix index 04d9d1b..cdf7a5d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -254,7 +254,22 @@ in ]; groups = [ "wheel" ]; }]; -}; + }; + + security.polkit = { + enable = true; + extraConfig = '' + polkit.addRule(function(action, subject) { + if ((action.id == "org.corectrl.helper.init" || + action.id == "org.corectrl.helperkiller.init") && + subject.local == true && + subject.active == true && + subject.isInGroup("wheel")) { + return polkit.Result.YES; + } + }); + ''; + }; # Some programs need SUID wrappers, can be configured further or are # started in user sessions.