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
+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;
}
});
'';
}