{...}: { security.polkit.enable = true; security.polkit.extraConfig = '' polkit.addRule(function(action, subject) { if ((action.id == "org.corectrl.helper.gpu.set" || action.id == "org.corectrl.helper.gpu.apply") && subject.isInGroup("wheel")) { return polkit.Result.YES; } }); ''; }