diff options
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}"; + }; + }; +} |