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