added security.nix
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
../system/browser.nix
|
../system/browser.nix
|
||||||
../system/wayland.nix
|
../system/wayland.nix
|
||||||
../system/graphics.nix
|
../system/graphics.nix
|
||||||
|
../system/security.nix
|
||||||
|
|
||||||
# FIXME
|
# FIXME
|
||||||
../system/amd.nix
|
../system/amd.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;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user