diff --git a/hosts/Rupert.nix b/hosts/Rupert.nix index 1c0d758..ef0fa9c 100644 --- a/hosts/Rupert.nix +++ b/hosts/Rupert.nix @@ -128,6 +128,16 @@ in # systemd.services.nixos-upgrade.onFailure = lib.mkIf config.system.autoUpgrade.enable [ "status-email@%n.service" ]; + services.smartd = { + enable = true; + notifications.x11.enable = false; + notifications.mail = { + enable = true; + sender = config.email.fromAddress; + recipient = config.email.adminEmail; + mailer = "${pkgs.system-sendmail}/bin/sendmail"; + }; + }; services.btrfsScrub = { enable = true; paths = {