From f14d332d7f9dc06a8fa75a2365551e3831798d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Numbus?= Date: Fri, 2 Jan 2026 22:30:09 +0100 Subject: [PATCH] Moved smart nix config --- templates/nix-config/configuration.nix | 3 ++- templates/nix-config/misc/mail.nix | 20 -------------------- templates/nix-config/misc/smart.nix | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 templates/nix-config/misc/smart.nix diff --git a/templates/nix-config/configuration.nix b/templates/nix-config/configuration.nix index 2d4ce2e..94a121a 100644 --- a/templates/nix-config/configuration.nix +++ b/templates/nix-config/configuration.nix @@ -6,8 +6,9 @@ (modulesPath + "/profiles/qemu-guest.nix") inputs.sops-nix.nixosModules.sops ./disks/disko.nix - ./misc/networking.nix ./misc/mail.nix + ./misc/networking.nix + ./misc/smart.nix # ./disks/snapraid.nix # ./disks/pcr-check.nix # ./pcie-coral/coral.nix diff --git a/templates/nix-config/misc/mail.nix b/templates/nix-config/misc/mail.nix index 3259cb9..46f7357 100644 --- a/templates/nix-config/misc/mail.nix +++ b/templates/nix-config/misc/mail.nix @@ -49,24 +49,4 @@ in }; }; ### Mail notifications configuration <-- - - - -### --> SMART disk heath - services.smartd = { - enable = true; - defaults.autodetected = "-a -o on -S on -s (S/../.././00|L/../../6/01) -n standby,q"; - notifications = { - wall = { - enable = true; - }; - mail = { - enable = true; - sender = config.email.fromAddress; - recipient = config.email.toAddress; - }; - }; - }; -### SMART disk heath <-- - } \ No newline at end of file diff --git a/templates/nix-config/misc/smart.nix b/templates/nix-config/misc/smart.nix new file mode 100644 index 0000000..a82b6fd --- /dev/null +++ b/templates/nix-config/misc/smart.nix @@ -0,0 +1,19 @@ +{ config, pkgs, ... }: +{ +### --> SMART disk heath + services.smartd = { + enable = true; + defaults.autodetected = "-a -o on -S on -s (S/../.././00|L/../../6/01) -n standby,q"; + notifications = { + wall = { + enable = true; + }; + mail = { + enable = true; + sender = config.email.fromAddress; + recipient = config.email.toAddress; + }; + }; + }; +### SMART disk heath <-- +} \ No newline at end of file