{pkgs, ...}: let name = "toph.so"; tophso = pkgs.writeTextFile { inherit name; destination = "/index.html"; text = '' toph.so Mastodon ''; }; in { services = { static-web-server.configuration.advanced.virtual-hosts = [ { host = name; root = tophso; } ]; traefik.routes.toph = { rule = "Host(`${name}`)"; url = "http://localhost:89"; }; }; }