diff options
-rw-r--r-- | odin.nix | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -13,6 +13,7 @@ | |||
13 | ./custom/uucp-mediaserver.nix | 13 | ./custom/uucp-mediaserver.nix |
14 | ./custom/borgbackup.nix | 14 | ./custom/borgbackup.nix |
15 | ./custom/motion.nix | 15 | ./custom/motion.nix |
16 | ./custom/unit-status-mail.nix | ||
16 | ]; | 17 | ]; |
17 | 18 | ||
18 | # Use the GRUB 2 boot loader. | 19 | # Use the GRUB 2 boot loader. |
@@ -282,6 +283,13 @@ | |||
282 | }; | 283 | }; |
283 | }; | 284 | }; |
284 | 285 | ||
286 | systemd.status-mail = { | ||
287 | recipient = "root@yggdrasil.li"; | ||
288 | onFailure = [ "nixos-upgrade" | ||
289 | "borgbackup-munin@" "borgbackup-prune-munin" | ||
290 | ]; | ||
291 | }; | ||
292 | |||
285 | system.autoUpgrade.enable = true; | 293 | system.autoUpgrade.enable = true; |
286 | system.stateVersion = "18.09"; | 294 | system.stateVersion = "18.09"; |
287 | 295 | ||