From 4ff756fbea38ec010070cc9f1474f769dd385134 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Fri, 11 Oct 2024 10:34:38 +0700 Subject: [PATCH] ntfy-sh: add more topics to subscribe to --- system/podman/qbittorrent.nix | 16 +++++++++++----- system/podman/servarr/default.nix | 6 ++++++ system/services/telemetry/default.nix | 5 +++++ 3 files changed, 22 insertions(+), 5 deletions(-) diff --git a/system/podman/qbittorrent.nix b/system/podman/qbittorrent.nix index 1ae63ff..0b33537 100644 --- a/system/podman/qbittorrent.nix +++ b/system/podman/qbittorrent.nix @@ -13,8 +13,8 @@ let uid = toString user.uid; gid = toString user.gid; in -{ - config = mkIf (podman.enable && qbittorrent.enable) { +lib.mkMerge [ + (mkIf (podman.enable && qbittorrent.enable) { services.caddy.virtualHosts.${domain}.extraConfig = '' reverse_proxy ${ip}:8080 ''; @@ -109,6 +109,12 @@ in "io.containers.autoupdate" = "registry"; }; }; - }; -} - + }) + { + profile.services.ntfy-sh.client.settings.subscribe = [ + { + topic = "qbittorrent"; + } + ]; + } +] diff --git a/system/podman/servarr/default.nix b/system/podman/servarr/default.nix index a461fb7..0b49651 100644 --- a/system/podman/servarr/default.nix +++ b/system/podman/servarr/default.nix @@ -10,4 +10,10 @@ ./rdtclient.nix ./recyclarr.nix ]; + + profile.services.ntfy-sh.client.settings.subscribe = [ + { + topic = "servarr"; + } + ]; } diff --git a/system/services/telemetry/default.nix b/system/services/telemetry/default.nix index 1a0adad..af34198 100644 --- a/system/services/telemetry/default.nix +++ b/system/services/telemetry/default.nix @@ -8,4 +8,9 @@ ./mimir.nix ./prometheus.nix ]; + + profile.services.ntfy-sh.client.settings.subscribe = [ + { topic = "homeserver"; } + { topic = "grafana"; } + ]; }