Only notify of relevant SMART errors

This commit is contained in:
coolneng 2022-06-23 23:41:22 +02:00
parent 3065deb6e1
commit 6760720d05
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ in {
# Notify when a disk starts going haywire # Notify when a disk starts going haywire
services.smartd = { services.smartd = {
enable = true; enable = true;
defaults.monitored = "-H -f -t -C 197 -U 198 -d nvme";
autodetect = false;
devices = [{ device = "/dev/nvme0"; }];
notifications.mail = { notifications.mail = {
enable = true; enable = true;
sender = sender; sender = sender;