_: let domainName = "acomputer.lol"; in { services = { caddy.virtualHosts."${domainName}" = { extraConfig = '' handle /.well-known/matrix/server { header Content-Type application/json header Access-Control-Allow-Origin * respond `{"m.server": "matrix.${domainName}:443"}` } handle /.well-known/matrix/client { header Content-Type application/json header Access-Control-Allow-Origin * respond `{"m.homeserver": {"base_url": "https://matrix.${domainName}:443"}}` } ''; }; }; }