From cf6a723d102c333343aaed1c87709303a2c27f3a Mon Sep 17 00:00:00 2001 From: Satria Date: Sun, 1 Mar 2026 10:10:58 +0700 Subject: [PATCH] fix proxy again --- modules/system/homelab/proxy.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;