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


                
                                         



                                                    
                                  

                                                                               




                                                                                       

    
{ config, ... }:

let
  domain = config.global.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}";
    };
  };
}