diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-09 10:38:41 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-05-09 10:38:41 +0200 |
commit | 88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d (patch) | |
tree | 0dd23445b7a67c7e625f03ff06bec84121af0edc /odin.nix | |
parent | 72799f3a2f146dcf9086be03b8717e70d59f1d88 (diff) | |
download | nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.tar nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.tar.gz nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.tar.bz2 nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.tar.xz nixos-88ef7f48053e0e5c70f1754b9d9d39eb7a72d25d.zip |
smartd on odin
Diffstat (limited to 'odin.nix')
-rw-r--r-- | odin.nix | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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" |