summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-14 19:37:00 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-14 19:37:00 +0200
commitca9d9d992454a6294265eb1b7511bb82a4868bb9 (patch)
tree0eb2c0410def5f86ba2dfd9e9a9cafe2d536b37c
parent964e8f1274fc0a25496ec40dcf5d0fdeccfa6681 (diff)
downloadnixos-ca9d9d992454a6294265eb1b7511bb82a4868bb9.tar
nixos-ca9d9d992454a6294265eb1b7511bb82a4868bb9.tar.gz
nixos-ca9d9d992454a6294265eb1b7511bb82a4868bb9.tar.bz2
nixos-ca9d9d992454a6294265eb1b7511bb82a4868bb9.tar.xz
nixos-ca9d9d992454a6294265eb1b7511bb82a4868bb9.zip
onFailure mail for odin
-rw-r--r--odin.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/odin.nix b/odin.nix
index 480031c3..be2acc9e 100644
--- a/odin.nix
+++ b/odin.nix
@@ -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