about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2023-11-05 12:50:11 +0900
committersefidel <contact@sefidel.net>2023-11-12 17:12:49 +0900
commit8c2d625042c3497893702a6d3538330bb8148959 (patch)
treea6855a24c2c9872d2bbab9bb22a386945be29957
parentf49a7dc20d11732e9250b1e88398931f25e3b23b (diff)
downloadinfra-8c2d625042c3497893702a6d3538330bb8148959.tar.gz
infra-8c2d625042c3497893702a6d3538330bb8148959.zip
chore(modules)!: dendrite -> matrix-homeserver
This commit removes direct references to dendrite in system
configuration to provide a base to switch to other homeservers.
-rw-r--r--modules/services/matrix-homeserver.nix (renamed from modules/services/dendrite.nix)8
-rw-r--r--systems/cobalt/default.nix2
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/services/dendrite.nix b/modules/services/matrix-homeserver.nix
index fe19e11..6af8f7f 100644
--- a/modules/services/dendrite.nix
+++ b/modules/services/matrix-homeserver.nix
@@ -2,7 +2,7 @@
 
 with lib;
 let
-  cfg = config.modules.services.dendrite;
+  cfg = config.modules.services.matrix-homeserver;
 
   database = {
     connection_string = "postgres:///dendrite?host=/run/postgresql";
@@ -16,13 +16,13 @@ in
     ../../overlays/sliding-sync-module.nix
   ];
 
-  options.modules.services.dendrite = {
-    enable = mkEnableOption "dendrite instance";
+  options.modules.services.matrix-homeserver = {
+    enable = mkEnableOption "matrix homeserver instance";
     domain = mkOption { type = types.str; };
     realHost = mkOption { type = types.str; default = "matrix.${cfg.domain}"; };
     slidingSyncHost = mkOption { type = types.str; default = "slidingsync.${cfg.domain}"; };
     turn = {
-      enable = mkEnableOption "VOIP suing TURN";
+      enable = mkEnableOption "VOIP using TURN";
       domain = mkOption { type = types.str; default = "turn.${cfg.domain}"; };
       shared_secret = mkOption { type = types.str; };
     };
diff --git a/systems/cobalt/default.nix b/systems/cobalt/default.nix
index a663385..bbd5261 100644
--- a/systems/cobalt/default.nix
+++ b/systems/cobalt/default.nix
@@ -254,7 +254,7 @@ in
     };
     services.fail2ban.enable = true;
     services.postgresql.enable = true;
-    services.dendrite = {
+    services.matrix-homeserver = {
       enable = true;
       domain = "exotic.sh";
       realHost = "matrix.exotic.sh";