Apparently kea doesn't list->csv for me

This commit is contained in:
niten 2023-12-05 21:09:49 -08:00
parent a169209046
commit 72a33bd452
1 changed files with 4 additions and 3 deletions

View File

@ -138,10 +138,11 @@ in {
valid-lifetime = 4000; valid-lifetime = 4000;
rebind-timer = 2000; rebind-timer = 2000;
renew-timer = 1000; renew-timer = 1000;
option-data = [ option-data = let joinList = concatStringsSep ", ";
in [
{ {
name = "domain-name-servers"; name = "domain-name-servers";
data = cfg.dns-servers; data = cfg.joinList dns-servers;
} }
{ {
name = "subnet-mask"; name = "subnet-mask";
@ -161,7 +162,7 @@ in {
} }
{ {
name = "domain-search"; name = "domain-search";
data = [ cfg.domain ] ++ cfg.search-domains; data = joinList ([ cfg.domain ] ++ cfg.search-domains);
} }
]; ];
subnet4 = [{ subnet4 = [{