summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/smart-monitor.nix
blob: 9b0290a9b74e4dac69f6b0720e257e0af4df28ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, ... }:
{
  krebs.exim-retiolum.enable = lib.mkDefault true;
  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 = lib.mkDefault [{
      device = "/dev/sda";
    }];
  };
}