about summary refs log tree commit diff
path: root/modules/matrix
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/matrix
parent2024-05-04 (diff)
2024-05-05
Diffstat (limited to 'modules/matrix')
-rw-r--r--modules/matrix/dendrite.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/modules/matrix/dendrite.nix b/modules/matrix/dendrite.nix
index dafef00..c391ba0 100644
--- a/modules/matrix/dendrite.nix
+++ b/modules/matrix/dendrite.nix
@@ -1,8 +1,9 @@
 {
   config,
-  lib,
   inputs,
+  lib,
   pkgs,
+  this,
   ...
 }:
 with lib;
@@ -235,5 +236,14 @@ in
             ];
           };
       };
+
+      topology = with cfg; {
+        nodes.${this.hostname}.services.dendrite = {
+          name = "Dendrite";
+          icon = "${inputs.homelab-svg-assets}/assets/matrix-white.svg";
+          info = domain;
+          details.listen.text = "127.0.0.1:${toString port}";
+        };
+      };
     };
 }

Consider giving Nix/NixOS a try! <3