nixos-config/modules/services/smart-monitoring.nix

32 lines
737 B
Nix
Raw Normal View History

{ config, ... }:
{
2024-12-19 18:23:38 +01:00
services.scrutiny = {
enable = true;
collector.enable = true;
settings.web.listen.port = 8181;
settings.notify.urls = [
# "ntfy://${config.liv.variables.ntfyURL}/${config.networking.hostName}"
"ntfy://notify.liv.town/${config.networking.hostName}"
2024-12-19 18:23:38 +01:00
];
};
services.smartd = {
enable = true;
autodetect = true;
notifications = {
mail = {
enable = true;
# mailer = "/path/to/mailer/binary";
sender = "${config.liv.variables.fromEmail}";
recipient = "${config.liv.variables.toEmail}";
};
};
};
# services.nginx.virtualHosts."" = {
# locations."/" = {
# proxyPass = "http://localhost:8181/";
# };
# };
2024-12-19 18:23:38 +01:00
}