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