From 6760720d05653ed7b20d2f63b265c4d4f78e9e56 Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 23 Jun 2022 23:41:22 +0200 Subject: [PATCH] Only notify of relevant SMART errors --- modules/monitoring.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/monitoring.nix b/modules/monitoring.nix index 8b1225c..e339634 100644 --- a/modules/monitoring.nix +++ b/modules/monitoring.nix @@ -10,6 +10,9 @@ in { # Notify when a disk starts going haywire services.smartd = { enable = true; + defaults.monitored = "-H -f -t -C 197 -U 198 -d nvme"; + autodetect = false; + devices = [{ device = "/dev/nvme0"; }]; notifications.mail = { enable = true; sender = sender;