summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-05-09 10:38:41 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-05-09 10:38:41 +0200
commit88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d (patch)
tree0dd23445b7a67c7e625f03ff06bec84121af0edc
parent72799f3a2f146dcf9086be03b8717e70d59f1d88 (diff)
downloadnixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.tar
nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.tar.gz
nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.tar.bz2
nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.tar.xz
nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.zip
smartd on odin
-rw-r--r--odin.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/odin.nix b/odin.nix
index 21352a7c..cced1970 100644
--- a/odin.nix
+++ b/odin.nix
@@ -359,6 +359,15 @@
359 autoOptimiseStore = true; 359 autoOptimiseStore = true;
360 }; 360 };
361 361
362 services.smartd = {
363 enable = true;
364 autodetect = true;
365 notifications.mail = {
366 enable = true;
367 test = true;
368 };
369 };
370
362 systemd.status-mail = { 371 systemd.status-mail = {
363 recipient = "root@odin.asgard.yggdrasil"; 372 recipient = "root@odin.asgard.yggdrasil";
364 onFailure = [ "nixos-upgrade" 373 onFailure = [ "nixos-upgrade"