diff options
Diffstat (limited to 'hel.nix')
-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 | ''; |