enable polkit with config for corectrl

This commit is contained in:
mjallen18
2024-02-06 14:58:18 -06:00
parent c6bd514091
commit 0aecf73183

View File

@@ -254,7 +254,22 @@ in
];
groups = [ "wheel" ];
}];
};
};
security.polkit = {
enable = true;
extraConfig = ''
polkit.addRule(function(action, subject) {
if ((action.id == "org.corectrl.helper.init" ||
action.id == "org.corectrl.helperkiller.init") &&
subject.local == true &&
subject.active == true &&
subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
'';
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.