{ config, lib, pkgs, ... }: { imports = [ ./default.nix ]; services.traefik.dynamicConfigOptions.http = { routers.grafana = { rule = "Host(`grafana.xenia.me.uk`)"; entryPoints = [ "http" "https" ]; service = "grafana-webinterface"; middlewares = [ "auth" ]; tls = { certResolver = "default"; }; }; services.grafana-webinterface.loadBalancer.servers = [{ url = "http://localhost:3100"; }]; }; }