diff options
-rw-r--r-- | hel.nix | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -315,10 +315,8 @@ | |||
315 | enable = true; | 315 | enable = true; |
316 | extraConfig = '' | 316 | extraConfig = '' |
317 | polkit.addRule(function(action, subject) { | 317 | polkit.addRule(function(action, subject) { |
318 | polkit.log("action.id = ยดยด" + action.id + "``"); | ||
319 | polkit.log("subject.isInGroup(\"admin\") = " + subject.isInGroup("admin")); | ||
320 | if ( action.id == "org.freedesktop.systemd1.manage-units" | 318 | if ( action.id == "org.freedesktop.systemd1.manage-units" |
321 | && subject.isInGroup("admin") | 319 | && subject.isInGroup("wheel") |
322 | ) { | 320 | ) { |
323 | return polkit.Result.YES; | 321 | return polkit.Result.YES; |
324 | } | 322 | } |