summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hel.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/hel.nix b/hel.nix
index fdf97567..509955ad 100644
--- a/hel.nix
+++ b/hel.nix
@@ -374,7 +374,17 @@
374 if ( action.id == "org.freedesktop.systemd1.manage-units" 374 if ( action.id == "org.freedesktop.systemd1.manage-units"
375 && subject.isInGroup("wheel") 375 && subject.isInGroup("wheel")
376 ) { 376 ) {
377 return polkit.Result.YES; 377 return polkit.Result.YES;
378 }
379 });
380
381 polkit.addRule(function(action, subject) {
382 if ((action.id == "org.blueman.rfkill.setstate" ||
383 action.id == "org.blueman.network.setup"
384 ) && subject.local
385 && subject.active && subject.isInGroup("wheel")
386 ) {
387 return polkit.Result.YES;
378 } 388 }
379 }); 389 });
380 ''; 390 '';