{ pkgs, ... }: { services.caddy = { enable = true; virtualHosts."cinny.nothing.run".extraConfig = '' root * ${pkgs.cinny.override {conf = { defaultHomeserver = 0; homeserverList = [ "matrix.nothing.run" "matrix.inex.rocks" ]; allowCustomHomeservers = false; };}} file_server ''; virtualHosts."element.nothing.run".extraConfig = '' root * ${pkgs.element-web.override { conf = { default_server_config = { "m.homeserver".base_url = "https://nothing.run"; "m.identity_server" = {}; }; disable_custom_urls = true; brand = "Nothing Chat"; default_theme = "dark"; jitsi.preferred_domain = "https://jitsi.inex.rocks"; # TODO: host jitsi };}} file_server ''; virtualHosts."riot.nothing.run".extraConfig = '' redir https://element.nothing.run ''; # TODO: schildichat-web (there is no package in nixpkgs) }; networking.firewall.allowedTCPPorts = [ 80 443 ]; }