summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-25 16:39:21 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-25 16:39:21 +0200
commit75ae0d5e8728feefea506d314b4b5e1b907df4c5 (patch)
treeae0305e04cdb90c28259b187d3937b7509ebfa7e
parenta9bdc749a19afb7f91f4c57be1322c8aed155eaa (diff)
downloadnixos-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.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/odin.nix b/odin.nix
index b3c9b6ea..a0767915 100644
--- a/odin.nix
+++ b/odin.nix
@@ -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"