Files
hearth/nixos/system/hectic-lab/sentinèlla.nix
T
2026-06-04 18:58:03 +00:00

28 lines
577 B
Nix

{
inputs,
flake,
self,
domain,
...
}: { ... }: {
hectic.services."sentinèlla" = {
probe.enable = true;
watcher = {
enable = true;
pollingIntervalSec = 60;
# TG_TOKEN= and TG_CHAT_ID= are read from sus/sentinella-default.yaml
# (auto-declared by the module as sops.secrets."sentinèlla/watcher/environment")
};
};
services.nginx = {
virtualHosts."probe.${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:5988";
};
};
};
}