added security.nix

This commit is contained in:
kenji
2025-06-30 15:45:32 -05:00
parent 8f4de3964f
commit 945ed455c9
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@
../system/browser.nix
../system/wayland.nix
../system/graphics.nix
../system/security.nix
# FIXME
../system/amd.nix
+12
View File
@@ -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;
}
});
'';
}