dns: collect records correctly
This commit is contained in:
parent
e90f8e7ea6
commit
4e848d27f8
|
@ -17,9 +17,9 @@ let
|
|||
minimum = 60;
|
||||
};
|
||||
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 ];
|
||||
}) records ++ [ { } ]);
|
||||
}) records);
|
||||
});
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue