diff options
author | makefu <github@syntax-fehler.de> | 2015-12-29 21:20:36 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-12-29 21:20:36 +0100 |
commit | 7db8820f02ce8d32af68c5c1ae3567bca67a5e59 (patch) | |
tree | c5eaef25c52478c4caedaf812d4e00cfa9299c02 /2configs | |
parent | 7eb32d53c2c2c151d72541e56538afd0fb534cb7 (diff) |
m 1 gum: add smart monitor
Diffstat (limited to '2configs')
-rw-r--r-- | 2configs/smart-monitor.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2configs/smart-monitor.nix b/2configs/smart-monitor.nix new file mode 100644 index 000000000..7086f622b --- /dev/null +++ b/2configs/smart-monitor.nix @@ -0,0 +1,18 @@ +{ config, ... }: +{ + services.smartd = { + enable = true; + notifications = { + mail = { + enable = true; + recipient = config.krebs.users.makefu.mail; + }; + }; + # short daily, long weekly, check on boot + defaults.monitored = "-a -o on -s (S/../.././02|L/../../7/04)"; + + devices = [{ + device = "/dev/sda"; + }]; + }; +} |