diff --git a/lib/fudo/local-network.nix b/lib/fudo/local-network.nix index 8567915..71cdfc0 100644 --- a/lib/fudo/local-network.nix +++ b/lib/fudo/local-network.nix @@ -138,10 +138,11 @@ in { valid-lifetime = 4000; rebind-timer = 2000; renew-timer = 1000; - option-data = [ + option-data = let joinList = concatStringsSep ", "; + in [ { name = "domain-name-servers"; - data = cfg.dns-servers; + data = cfg.joinList dns-servers; } { name = "subnet-mask"; @@ -161,7 +162,7 @@ in { } { name = "domain-search"; - data = [ cfg.domain ] ++ cfg.search-domains; + data = joinList ([ cfg.domain ] ++ cfg.search-domains); } ]; subnet4 = [{