dns: collect records correctly

This commit is contained in:
Sandro - 2024-04-20 23:31:13 +02:00
parent e90f8e7ea6
commit 4e848d27f8
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -17,9 +17,9 @@ let
minimum = 60; minimum = 60;
}; };
NS = ns; NS = ns;
subdomains = lib.head (map ({ name, type, data }: { subdomains = lib.foldl (a: b: lib.recursiveUpdate a b) { } (map ({ name, type, data }: {
${name}.${type} = [ data ]; ${name}.${type} = [ data ];
}) records ++ [ { } ]); }) records);
}); });
in in
{ {