diff options
-rw-r--r-- | hel.nix | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -310,6 +310,19 @@ | |||
310 | source = ''${pkgs.callPackage ./custom/notify-user.nix { inherit (pkgs.haskellPackages) ghcWithPackages; }}/bin/notify-gkleen''; | 310 | source = ''${pkgs.callPackage ./custom/notify-user.nix { inherit (pkgs.haskellPackages) ghcWithPackages; }}/bin/notify-gkleen''; |
311 | } | 311 | } |
312 | ]; | 312 | ]; |
313 | |||
314 | polkit = { | ||
315 | enable = true; | ||
316 | extraConfig = '' | ||
317 | polkit.addRule(function(action, subject) { | ||
318 | if ( action.id == "org.freedesktop.systemd1.manage-units" | ||
319 | && subject.isInGroup("admin") | ||
320 | ) { | ||
321 | return polkit.Result.YES; | ||
322 | } | ||
323 | }); | ||
324 | ''; | ||
325 | }; | ||
313 | }; | 326 | }; |
314 | 327 | ||
315 | time.timeZone = "Europe/Berlin"; | 328 | time.timeZone = "Europe/Berlin"; |