{ config, ... }: { sops.secrets."glance/secrets.env" = {}; services.caddy.virtualHosts."glance.taild5f7e6.ts.net".extraConfig = '' import default-settings bind tailscale/glance reverse_proxy localhost:${toString config.services.glance.settings.server.port} ''; services.glance = { enable = true; environmentFile = config.sops.secrets."glance/secrets.env".path; settings = { server = { host = "127.0.0.1"; port = 8008; proxied = true; }; pages = let domain = "wo2wz.fyi"; tsDomain = "taild5f7e6.ts.net"; in [ { name = "Home"; columns = [ { size = "small"; widgets = [ { # xkcd type = "custom-api"; cache = "1h"; title = "XKCD"; title-url = "https://xkcd.com"; url = "https://xkcd.com/info.0.json"; template = ''
{{ .JSON.String "title" }}