summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2019-01-28 16:46:18 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2019-01-28 16:46:18 +0100
commitc600d4d305f8d41ae14af85bf2b99865801a0ee5 (patch)
treeebdac450ffbf9b32895ac04f8b44b7619aa5d72f
parent60242d398500e0f2a0edfc257315b374d7ec053a (diff)
downloadnixos-c600d4d305f8d41ae14af85bf2b99865801a0ee5.tar
nixos-c600d4d305f8d41ae14af85bf2b99865801a0ee5.tar.gz
nixos-c600d4d305f8d41ae14af85bf2b99865801a0ee5.tar.bz2
nixos-c600d4d305f8d41ae14af85bf2b99865801a0ee5.tar.xz
nixos-c600d4d305f8d41ae14af85bf2b99865801a0ee5.zip
Allow blueman network manipulation
-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 '';