Moved smart nix config

This commit is contained in:
Raphaël Numbus
2026-01-02 22:30:09 +01:00
parent 1b30a2c8a3
commit f14d332d7f
3 changed files with 21 additions and 21 deletions
+2 -1
View File
@@ -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
-20
View File
@@ -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 <--
}
+19
View File
@@ -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 <--
}