{lib, ...}: let packages = ["tmpl" "git-age" "ffmd"]; in { services.caddy = { enable = true; virtualHosts = { "jolheiser.com" = { extraConfig = '' handle_path /.well-known/webfinger { header Content-Type application/jrd+json respond ${builtins.toJSON { subject = "acct:john@jolheiser.com"; links = [ { rel = "http://openid.net/specs/connect/1.0/issuer"; href = "https://git.jojodev.com/"; } ]; }} } handle_path /bennet* { root * /srv/bennet/src file_server } handle { root * /srv/jolheiser.com/dist file_server } ''; serverAliases = ["www.jolheiser.com"]; }; "go.jolheiser.com" = { extraConfig = '' header Content-Type text/html respond / `