From c600d4d305f8d41ae14af85bf2b99865801a0ee5 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 28 Jan 2019 16:46:18 +0100 Subject: Allow blueman network manipulation --- hel.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hel.nix b/hel.nix index fdf97567..509955ad 100644 --- a/hel.nix +++ b/hel.nix @@ -374,7 +374,17 @@ if ( action.id == "org.freedesktop.systemd1.manage-units" && subject.isInGroup("wheel") ) { - return polkit.Result.YES; + return polkit.Result.YES; + } + }); + + polkit.addRule(function(action, subject) { + if ((action.id == "org.blueman.rfkill.setstate" || + action.id == "org.blueman.network.setup" + ) && subject.local + && subject.active && subject.isInGroup("wheel") + ) { + return polkit.Result.YES; } }); ''; -- cgit v1.2.3