diff --git a/modules/de.nix b/modules/de.nix index beca8bb..317cc10 100644 --- a/modules/de.nix +++ b/modules/de.nix @@ -9,6 +9,7 @@ ../system/browser.nix ../system/wayland.nix ../system/graphics.nix + ../system/security.nix # FIXME ../system/amd.nix diff --git a/system/security.nix b/system/security.nix new file mode 100644 index 0000000..9672b31 --- /dev/null +++ b/system/security.nix @@ -0,0 +1,12 @@ +{...}: { + 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; + } + }); + ''; +}