From 4d660a9a980fd10b52c0cc45a99ce43e7840a60c Mon Sep 17 00:00:00 2001 From: Satria Date: Sat, 28 Feb 2026 17:58:59 +0700 Subject: [PATCH] fix dns conf --- modules/system/homelab/dns.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/homelab/dns.nix b/modules/system/homelab/dns.nix index 2081b66..25ab8ba 100644 --- a/modules/system/homelab/dns.nix +++ b/modules/system/homelab/dns.nix @@ -26,7 +26,7 @@ bing = true; duckduckgo = true; }; - rewrites = map (host: { enabled = true; domain = host[0]; answer = host[1]; }) [ + rewrites = map (e: { enabled = true; domain = builtins.elemAt e 0; answer = builtins.elemAt e 1; }) [ [ "router.dns.${homelab.domain}" "10.3.14.1" ] [ "main.dns.${homelab.domain}" "10.3.14.42" ] [ "websites.dns.${homelab.domain}" "10.3.14.36" ]