summaryrefslogtreecommitdiffstats
path: root/usecases/server/smartd.nix
blob: d9f4c68a788c083811aed4a732c78607b0665ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
inputs:

{ lib, ... }:

{
  services.smartd = {
    enable = lib.mkDefault true;

    # Turns on SMART Automatic Offline Testing on startup, and schedules short
    # self-tests daily, and long self-tests weekly
    defaults.monitored = "-a -o on -s (S/../.././02|L/../../7/04)";

    # TODO: setup mailing of SMART failures
    #notifications.mail.recipient = "minijackson@huh.gdn";
  };
}