diff options
author | lassulus <lass@aidsballs.de> | 2015-12-30 01:43:51 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-12-30 01:43:51 +0100 |
commit | 92c4fee6dc10499a9960750abe91c8a4b41eb5d5 (patch) | |
tree | 1b5c00fd743d226545487126ba9eb149db9b18ad /makefu/2configs/smart-monitor.nix | |
parent | 2a0cd63387049350f6de73f609a32a0bf4e49253 (diff) | |
parent | d574c0ef78f7572aec88e484d3ff6256247e878c (diff) |
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/2configs/smart-monitor.nix')
-rw-r--r-- | makefu/2configs/smart-monitor.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/makefu/2configs/smart-monitor.nix b/makefu/2configs/smart-monitor.nix new file mode 100644 index 000000000..7086f622b --- /dev/null +++ b/makefu/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"; + }]; + }; +} |