gui: Fix polkit syntax error

Somehow the ECMAscript compatibility was downgraded.
nazuna
Simon Bruder 2022-12-11 16:22:23 +01:00
parent 5d98924ea1
commit 3cfb7b1d32
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ lib.mkIf config.sbruder.gui.enable {
security.polkit.extraConfig = lib.optionalString config.sbruder.full ''
// Potential security problem, but required because there is no graphical polkit authentication agent
polkit.addRule((action, subject) => {
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "${config.services.input-remapper.package}/bin/input-remapper-control" && subject.isInGroup("users")) {
return polkit.Result.YES;
}