diff options
author | sinanmohd <sinan@sinanmohd.com> | 2025-01-05 18:39:44 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2025-01-05 18:39:44 +0530 |
commit | 88bdc03019a392d16403330898d257bdeeb0ecc9 (patch) | |
tree | 4bc7ef3721931c4b1f22bcedb141392d8c7d2428 /os/kay/modules/matrix/default.nix | |
parent | 8e3b4dc1cb7565168fe95ab088d0c391b2e20388 (diff) |
kay/matrix: fix sliding sync
Diffstat (limited to 'os/kay/modules/matrix/default.nix')
-rw-r--r-- | os/kay/modules/matrix/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
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}"; + }; + }; +} |