about summary refs log tree commit diff
path: root/modules/ntfy.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-05-05 14:28:31 +0300
committerAzat Bahawi <azat@bahawi.net>2024-05-05 14:28:31 +0300
commit389becf9700d3dee7f09073ce4d235fc7c30b5c8 (patch)
tree3db9d75bd5275614fc904184c97b3133f38bc3d0 /modules/ntfy.nix
parent2024-05-04 (diff)
2024-05-05
Diffstat (limited to 'modules/ntfy.nix')
-rw-r--r--modules/ntfy.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/ntfy.nix b/modules/ntfy.nix
index 5739855..e3de72e 100644
--- a/modules/ntfy.nix
+++ b/modules/ntfy.nix
@@ -1,5 +1,6 @@
 {
   config,
+  inputs,
   lib,
   libNginx,
   this,
@@ -76,5 +77,14 @@ in
           optionalString cfg.prometheus.enable "${address}:${toString port}";
       };
     };
+
+    topology = with cfg; {
+      nodes.${this.hostname}.services.ntfy = {
+        name = "ntfy";
+        icon = "${inputs.homelab-svg-assets}/assets/ntfy.svg";
+        info = domain;
+        details.listen.text = config.services.ntfy-sh.settings.listen-http;
+      };
+    };
   };
 }

Consider giving Nix/NixOS a try! <3