From a002c1476dfb2977d91f6de677873c1050f0a09c Mon Sep 17 00:00:00 2001 From: fruchti Date: Thu, 17 Apr 2025 12:16:36 +0200 Subject: [PATCH] Rupert: Enable smartd --- hosts/Rupert.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 = {