summaryrefslogtreecommitdiff
path: root/hosts/kay/modules/matrix_sliding_sync.nix
blob: f18ef102e97d51aaea1cd3c95d627f93acebd4e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ 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}";
  };
}