Use normal environmentFile option

Set topic ntfy notifications
This commit is contained in:
Pim Kunis 2025-06-08 10:04:02 +02:00
parent c5e166a858
commit 8a5e92bb7e

View file

@ -39,10 +39,10 @@ in {
}; };
networking.firewall.allowedTCPPorts = [gatusPort]; networking.firewall.allowedTCPPorts = [gatusPort];
systemd.services.gatus.serviceConfig.EnvironmentFile = config.sops.secrets."gatus/env".path;
services.gatus = { services.gatus = {
enable = true; enable = true;
environmentFile = config.sops.secrets."gatus/env".path;
settings = { settings = {
alerting = let alerting = let
@ -68,6 +68,7 @@ in {
ntfy = { ntfy = {
url = "https://ntfy.kun.is"; url = "https://ntfy.kun.is";
token = "$NTFY_ACCESS_TOKEN"; token = "$NTFY_ACCESS_TOKEN";
topic = "gatus";
inherit default-alert; inherit default-alert;
}; };
}; };