This repository has been archived on 2024-08-30. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/hosts/carbon/services/monitoring/exporters/smartctl.nix

17 lines
295 B
Nix
Raw Normal View History

2024-05-29 17:15:20 +02:00
{ pkgs, ... }: {
services.prometheus.exporters.smartctl = {
enable = true;
openFirewall = true;
devices = [ "/dev/sda" ];
};
services.smartd = {
enable = true;
notifications.wall.enable = true;
devices = [
{
device = "/dev/sda";
}
];
};
}