diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-25 16:39:21 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-25 16:39:21 +0200 |
commit | 75ae0d5e8728feefea506d314b4b5e1b907df4c5 (patch) | |
tree | ae0305e04cdb90c28259b187d3937b7509ebfa7e | |
parent | a9bdc749a19afb7f91f4c57be1322c8aed155eaa (diff) | |
download | nixos-75ae0d5e8728feefea506d314b4b5e1b907df4c5.tar nixos-75ae0d5e8728feefea506d314b4b5e1b907df4c5.tar.gz nixos-75ae0d5e8728feefea506d314b4b5e1b907df4c5.tar.bz2 nixos-75ae0d5e8728feefea506d314b4b5e1b907df4c5.tar.xz nixos-75ae0d5e8728feefea506d314b4b5e1b907df4c5.zip |
wheel may manage units
-rw-r--r-- | odin.nix | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -313,6 +313,19 @@ | |||
313 | } | 313 | } |
314 | ]; | 314 | ]; |
315 | 315 | ||
316 | security.polkit = { | ||
317 | enable = true; | ||
318 | extraConfig = '' | ||
319 | polkit.addRule(function(action, subject) { | ||
320 | if ( action.id == "org.freedesktop.systemd1.manage-units" | ||
321 | && subject.isInGroup("wheel") | ||
322 | ) { | ||
323 | return polkit.Result.YES; | ||
324 | } | ||
325 | }); | ||
326 | ''; | ||
327 | }; | ||
328 | |||
316 | systemd.status-mail = { | 329 | systemd.status-mail = { |
317 | recipient = "root@odin.asgard.yggdrasil"; | 330 | recipient = "root@odin.asgard.yggdrasil"; |
318 | onFailure = [ "nixos-upgrade" | 331 | onFailure = [ "nixos-upgrade" |