summaryrefslogtreecommitdiff
path: root/os/kay/modules/matrix-sliding-sync.nix
blob: ebdc34d18c938defb4d76f1778bcd16b87e73fe9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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_LOG_LEVEL = "warn";
      SYNCV3_SERVER = "http://127.0.0.1:${toString config.services.dendrite.httpPort}";
    };
  };
}