summaryrefslogtreecommitdiffstats
path: root/makefu/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
commit4b6cd401a85cdc7aab150208cc5310645a7e59e2 (patch)
treef3654f6991e15f1cf6f68c0d7ae3f0c80eb8ce86 /makefu/2configs
parent9abd00f6af48676f08b6afdddd03d12410a1d1cd (diff)
m 1 gum: add smart monitor
Diffstat (limited to 'makefu/2configs')
-rw-r--r--makefu/2configs/smart-monitor.nix18
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";
+ }];
+ };
+}