From ca9d9d992454a6294265eb1b7511bb82a4868bb9 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 14 Apr 2018 19:37:00 +0200 Subject: onFailure mail for odin --- odin.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/odin.nix b/odin.nix index 480031c3..be2acc9e 100644 --- a/odin.nix +++ b/odin.nix @@ -13,6 +13,7 @@ ./custom/uucp-mediaserver.nix ./custom/borgbackup.nix ./custom/motion.nix + ./custom/unit-status-mail.nix ]; # Use the GRUB 2 boot loader. @@ -282,6 +283,13 @@ }; }; + systemd.status-mail = { + recipient = "root@yggdrasil.li"; + onFailure = [ "nixos-upgrade" + "borgbackup-munin@" "borgbackup-prune-munin" + ]; + }; + system.autoUpgrade.enable = true; system.stateVersion = "18.09"; -- cgit v1.2.3