From 88bdc03019a392d16403330898d257bdeeb0ecc9 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 5 Jan 2025 18:39:44 +0530 Subject: kay/matrix: fix sliding sync --- os/kay/modules/matrix/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 os/kay/modules/matrix/default.nix (limited to 'os/kay/modules/matrix/default.nix') diff --git a/os/kay/modules/matrix/default.nix b/os/kay/modules/matrix/default.nix new file mode 100644 index 0000000..f81d0d9 --- /dev/null +++ b/os/kay/modules/matrix/default.nix @@ -0,0 +1,20 @@ +{ config, ... }: let + domain = config.global.userdata.domain; +in { + imports = [ + ./dendrite.nix + ./matrix-sliding-sync.nix + ]; + + sops.secrets."matrix-${domain}/sliding_sync" = {}; + + services.matrix-sliding-sync-dirty = { + enable = true; + environmentFile = config.sops.secrets."matrix-${domain}/sliding_sync".path; + + settings = { + SYNCV3_LOG_LEVEL = "warn"; + SYNCV3_SERVER = "http://127.0.0.1:${toString config.services.dendrite.httpPort}"; + }; + }; +} -- cgit v1.2.3