diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-01-28 16:46:18 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-01-28 16:46:18 +0100 |
| commit | c600d4d305f8d41ae14af85bf2b99865801a0ee5 (patch) | |
| tree | ebdac450ffbf9b32895ac04f8b44b7619aa5d72f | |
| parent | 60242d398500e0f2a0edfc257315b374d7ec053a (diff) | |
| download | nixos-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.nix | 12 |
1 files changed, 11 insertions, 1 deletions
| @@ -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 | ''; |
