Moved smart nix config
This commit is contained in:
@@ -6,8 +6,9 @@
|
|||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
(modulesPath + "/profiles/qemu-guest.nix")
|
||||||
inputs.sops-nix.nixosModules.sops
|
inputs.sops-nix.nixosModules.sops
|
||||||
./disks/disko.nix
|
./disks/disko.nix
|
||||||
./misc/networking.nix
|
|
||||||
./misc/mail.nix
|
./misc/mail.nix
|
||||||
|
./misc/networking.nix
|
||||||
|
./misc/smart.nix
|
||||||
# ./disks/snapraid.nix
|
# ./disks/snapraid.nix
|
||||||
# ./disks/pcr-check.nix
|
# ./disks/pcr-check.nix
|
||||||
# ./pcie-coral/coral.nix
|
# ./pcie-coral/coral.nix
|
||||||
|
|||||||
@@ -49,24 +49,4 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
### Mail notifications configuration <--
|
### 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 <--
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -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 <--
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user