2025-07-28 00:57:04 +02:00
|
|
|
{ config, host, ... }:
|
2025-04-20 19:50:11 +02:00
|
|
|
{
|
2025-07-28 00:57:04 +02:00
|
|
|
imports = [ ./email.nix ];
|
2024-12-19 18:23:38 +01:00
|
|
|
services.scrutiny = {
|
2025-07-28 00:57:04 +02:00
|
|
|
# Enable based on name of host
|
|
|
|
|
enable =
|
|
|
|
|
if (host == "dandelion") then
|
|
|
|
|
true
|
2025-10-23 00:14:59 +02:00
|
|
|
else if (host == "sunflower") then
|
2025-07-28 00:57:04 +02:00
|
|
|
true
|
|
|
|
|
else
|
|
|
|
|
false;
|
2024-12-19 18:23:38 +01:00
|
|
|
collector.enable = true;
|
|
|
|
|
settings.web.listen.port = 8181;
|
|
|
|
|
settings.notify.urls = [
|
2025-04-20 19:50:11 +02:00
|
|
|
# "ntfy://${config.liv.variables.ntfyURL}/${config.networking.hostName}"
|
|
|
|
|
"ntfy://notify.liv.town/${config.networking.hostName}"
|
2024-12-19 18:23:38 +01:00
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2025-07-28 00:57:04 +02:00
|
|
|
services.smartd = {
|
|
|
|
|
enable = true;
|
|
|
|
|
autodetect = true;
|
|
|
|
|
notifications = {
|
|
|
|
|
wall = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
mail = {
|
|
|
|
|
enable = true;
|
|
|
|
|
sender = config.liv.variables.senderEmail;
|
|
|
|
|
recipient = config.liv.variables.email;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-04-24 10:58:12 +02:00
|
|
|
|
2025-03-22 23:02:00 +01:00
|
|
|
# services.nginx.virtualHosts."" = {
|
|
|
|
|
# locations."/" = {
|
|
|
|
|
# proxyPass = "http://localhost:8181/";
|
|
|
|
|
# };
|
|
|
|
|
# };
|
2024-12-19 18:23:38 +01:00
|
|
|
}
|