summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"