summaryrefslogblamecommitdiff
path: root/hosts/kay/modules/matrix-sliding-sync.nix
blob: ebdc34d18c938defb4d76f1778bcd16b87e73fe9 (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                    
                                  

                                                                               




                                                                                       

    
{ 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}";
    };
  };
}