{ config, pkgs, ... }: let net = import ../data/network.nix; serv = import ../data/services.nix; in { services.matrix-continuwuity = { settings = { global = { server_name = net.services.continuwuity.domainOverride; address = "127.0.0.1"; port = 6167; allow_registration = true; allow_encryption = true; allow_federation = true; max_request_size = 20 * 1024 * 1024; # 20 MiB trusted_servers = serv.matrix.trusted_servers; }; }; }; }