NixOS-Config/modules/system/services/social/matrix/synapse/slidingsync/default.nix
2024-10-09 03:36:08 -04:00

14 lines
335 B
Nix

{ pkgs, outputs, ... }:
{
services.matrix-sliding-sync = {
enable = true;
settings = {
SYNCV3_SERVER = "https://matrix.${outputs.secrets.jimDomain}";
SYNCV3_BINDADDR = "0.0.0.0:8009";
};
environmentFile = pkgs.writeText "matrixsecret" ''
SYNCV3_SECRET=${outputs.secrets.matrixSecret}
'';
};
}