2023-03-23 00:23:14 +02:00
|
|
|
{ cluster, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
recursors = lib.pipe (cluster.config.services.dns.nodes.coredns) [
|
|
|
|
(map (node: cluster.config.hostLinks.${node}.dnsResolverBackend.ipv4))
|
|
|
|
];
|
|
|
|
in
|
2022-08-07 21:01:27 +03:00
|
|
|
|
|
|
|
{
|
2023-03-23 00:23:14 +02:00
|
|
|
networking.nameservers = [ cluster.config.links.dnsResolver.ipv4 ] ++ recursors;
|
2022-08-07 21:01:27 +03:00
|
|
|
}
|