19 lines
297 B
Nix
19 lines
297 B
Nix
{ pkgs, ... }: {
|
|
services.prometheus.exporters.smartctl = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
devices = [ "/dev/sda" ];
|
|
};
|
|
|
|
services.smartd = {
|
|
enable = true;
|
|
notifications.wall.enable = true;
|
|
devices = [
|
|
{
|
|
device = "/dev/sda";
|
|
}
|
|
];
|
|
};
|
|
|
|
}
|