summaryrefslogtreecommitdiffstats
path: root/2configs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-12-29 21:20:36 +0100
committermakefu <github@syntax-fehler.de>2015-12-29 21:20:36 +0100
commit7db8820f02ce8d32af68c5c1ae3567bca67a5e59 (patch)
treec5eaef25c52478c4caedaf812d4e00cfa9299c02 /2configs
parent7eb32d53c2c2c151d72541e56538afd0fb534cb7 (diff)
m 1 gum: add smart monitor
Diffstat (limited to '2configs')
-rw-r--r--2configs/smart-monitor.nix18
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";
+ }];
+ };
+}