diff options
| -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" |
