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 | 4b6cd401a85cdc7aab150208cc5310645a7e59e2 (patch) | |
tree | f3654f6991e15f1cf6f68c0d7ae3f0c80eb8ce86 /makefu | |
parent | 9abd00f6af48676f08b6afdddd03d12410a1d1cd (diff) |
m 1 gum: add smart monitor
Diffstat (limited to 'makefu')
-rw-r--r-- | makefu/1systems/gum.nix | 3 | ||||
-rw-r--r-- | makefu/2configs/smart-monitor.nix | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/makefu/1systems/gum.nix b/makefu/1systems/gum.nix index 93fb3dc3a..1907424ec 100644 --- a/makefu/1systems/gum.nix +++ b/makefu/1systems/gum.nix @@ -6,11 +6,11 @@ let internal-ip = head config.krebs.build.host.nets.retiolum.addrs4; in { imports = [ - # TODO: copy this config or move to krebs ../2configs/tinc-basic-retiolum.nix ../2configs/headless.nix ../2configs/fs/simple-swap.nix ../2configs/fs/single-partition-ext4.nix + ../2configs/smart-monitor.nix # ../2configs/iodined.nix ../2configs/git/cgit-retiolum.nix ../2configs/mattermost-docker.nix @@ -18,6 +18,7 @@ in { ../2configs/exim-retiolum.nix ../2configs/urlwatch.nix + ]; 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"; + }]; + }; +} |