summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/smart-monitor.nix
blob: 7086f622b70dba81ff6f023e19fc9dc796bb4392 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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";
    }];
  };
}