summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-31 17:16:50 +0100
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-31 17:16:50 +0100
commitaf7b6038da0bf23f5648ae15bbd32b10044de19b (patch)
treecdbf850328e8806434e843b54515766114dce95b
parentf3e5684e425eb85fed68e38fe38eba698e0c8859 (diff)
downloadnixos-af7b6038da0bf23f5648ae15bbd32b10044de19b.tar
nixos-af7b6038da0bf23f5648ae15bbd32b10044de19b.tar.gz
nixos-af7b6038da0bf23f5648ae15bbd32b10044de19b.tar.bz2
nixos-af7b6038da0bf23f5648ae15bbd32b10044de19b.tar.xz
nixos-af7b6038da0bf23f5648ae15bbd32b10044de19b.zip
no internal group called admin
-rw-r--r--hel.nix4
1 files changed, 1 insertions, 3 deletions
diff --git a/hel.nix b/hel.nix
index 6586568c..f7041ff4 100644
--- a/hel.nix
+++ b/hel.nix
@@ -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 }