{ lib, config }: { locations = { "/" = { extraConfig = '' return 301 https://spacebar.chat$request_uri; ''; }; ".well-known/matrix/server" = { root = "/var/lib/matrix"; }; "^~ /.well-known/acme-challenge/" = { root = "/var/lib/acme/acme-challenge"; }; }; }