From 565225847ebf54aa57722271dd83d99954a55076 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 24 Dec 2023 07:22:21 +0530 Subject: modules/matrix-sliding-sync: init dendrite --- hosts/kay/modules/matrix-sliding-sync.nix | 14 ++++++++++++++ hosts/kay/modules/matrix_sliding_sync.nix | 14 -------------- hosts/kay/modules/www.nix | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 hosts/kay/modules/matrix-sliding-sync.nix delete mode 100644 hosts/kay/modules/matrix_sliding_sync.nix (limited to 'hosts/kay') diff --git a/hosts/kay/modules/matrix-sliding-sync.nix b/hosts/kay/modules/matrix-sliding-sync.nix new file mode 100644 index 0000000..526734b --- /dev/null +++ b/hosts/kay/modules/matrix-sliding-sync.nix @@ -0,0 +1,14 @@ +{ config, ... }: + +let + domain = config.userdata.domain; +in +{ + sops.secrets."matrix-${domain}/sliding_sync" = {}; + + services.matrix-sliding-sync = { + enable = true; + environmentFile = config.sops.secrets."matrix-${domain}/sliding_sync".path; + settings.SYNCV3_SERVER = "https://${domain}"; + }; +} diff --git a/hosts/kay/modules/matrix_sliding_sync.nix b/hosts/kay/modules/matrix_sliding_sync.nix deleted file mode 100644 index f18ef10..0000000 --- a/hosts/kay/modules/matrix_sliding_sync.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ config, ... }: - -let - domain = config.userdata.domain; -in -{ - sops.secrets."matrix-${domain}/sliding_sync" = {}; - - services.matrix-synapse.sliding-sync = { - enable = true; - environmentFile = config.sops.secrets."matrix-${domain}/sliding_sync".path; - settings.SYNCV3_SERVER = "https://${domain}"; - }; -} diff --git a/hosts/kay/modules/www.nix b/hosts/kay/modules/www.nix index 4ffa141..aec5d5a 100644 --- a/hosts/kay/modules/www.nix +++ b/hosts/kay/modules/www.nix @@ -9,7 +9,7 @@ in { imports = [ ./dendrite.nix - ./matrix_sliding_sync.nix + ./matrix-sliding-sync.nix ./cgit.nix ]; @@ -53,7 +53,7 @@ in }}' ''; locations."/_matrix/client/unstable/org.matrix.msc3575/sync" = let - addr = "${config.services.matrix-synapse.sliding-sync.settings.SYNCV3_BINDADDR}"; + addr = "${config.services.matrix-sliding-sync.settings.SYNCV3_BINDADDR}"; in { proxyPass = "http://${addr}"; }; -- cgit v1.2.3