aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-07-18 17:52:43 +0200
committerMartin Fischer <martin@push-f.com>2026-10-14 07:47:10 +0200
commit7ac4de4af5121e9ad628a382e35fbc72e0651f76 (patch)
treefd8c72022c5b5ee7f7c1fb4cddcc7b823f62b14e /nixos
parent5ea398f22f771026688e824b9094bda7b9ccce90 (diff)
feat(tente): add ntfy
For receiving Grafana alerts.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/hosts/tente/grafana.nix11
-rw-r--r--nixos/hosts/tente/ports.nix1
2 files changed, 12 insertions, 0 deletions
diff --git a/nixos/hosts/tente/grafana.nix b/nixos/hosts/tente/grafana.nix
index 44d1815..1a1da1f 100644
--- a/nixos/hosts/tente/grafana.nix
+++ b/nixos/hosts/tente/grafana.nix
@@ -2,6 +2,7 @@
let
cfg = config.grafana;
+ ports = import ./ports.nix;
evPorts = import <top/hosts/ev/ports.nix>;
in
{
@@ -63,5 +64,15 @@ in
];
};
};
+
+ services.ntfy-sh = {
+ enable = true;
+ settings = {
+ listen-http = ":${toString ports.ntfy}";
+ # TODO: contribute to nixpkgs to add a default to this option
+ # We're only specifying this because the nixos option lacks a default value.
+ base-url = "http://push-f.com:${toString ports.ntfy}";
+ };
+ };
};
}
diff --git a/nixos/hosts/tente/ports.nix b/nixos/hosts/tente/ports.nix
index 426bf13..275450a 100644
--- a/nixos/hosts/tente/ports.nix
+++ b/nixos/hosts/tente/ports.nix
@@ -1,6 +1,7 @@
rec {
grafana = 3000;
grafanaAlloy = 3001;
+ ntfy = 3002;
grafanaLoki = 3030;
headscale = 8080;
prometheus = 9090;