{ config, ... }:
{
  services.matrix-sliding-sync = {
    enable = true;

    createDatabase = true;

    environmentFile = config.sops.secrets.matrix-sliding-sync-env.path;

    settings = {
      SYNCV3_SERVER = "http://127.0.0.1:8008";
      SYNCV3_BINDADDR = "0.0.0.0:8009";
    };
  };
}