diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index e356ed5..078570a 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -1,4 +1,4 @@ -{ homelab, ... }: let +{ homelab, lib, ... }: let base = "proxy.${homelab.domain}"; proxyMappings = { "dns" = { dest = "http://localhost:8088"; auth = true; }; @@ -22,8 +22,7 @@ in { enable = true; recommendedProxySettings = true; recommendedTlsSettings = true; - virtualHosts = builtins.mapAttrs (subdomain: cfg: { - hostName = "${subdomain}.${base}"; + virtualHosts = lib.mapAttrs' (subdomain: cfg: lib.nameValuePair "${subdomain}.${base}" { useACMEHost = base; forceSSL = true;