forked from DGNum/infrastructure
feat(dgn-network): Use only the specified DNS
This commit is contained in:
parent
c991c47b75
commit
5832da0941
1 changed files with 11 additions and 10 deletions
|
@ -32,7 +32,8 @@ let
|
||||||
routes = builtins.map mkRoute net.gateways;
|
routes = builtins.map mkRoute net.gateways;
|
||||||
|
|
||||||
# Add default DNS servers
|
# Add default DNS servers
|
||||||
dns = [
|
dns =
|
||||||
|
net'.dns or [
|
||||||
"1.1.1.1#cloudflare-dns.com"
|
"1.1.1.1#cloudflare-dns.com"
|
||||||
"8.8.8.8#dns.google"
|
"8.8.8.8#dns.google"
|
||||||
"1.0.0.1#cloudflare-dns.com"
|
"1.0.0.1#cloudflare-dns.com"
|
||||||
|
@ -41,7 +42,7 @@ let
|
||||||
"2001:4860:4860::8888#dns.google"
|
"2001:4860:4860::8888#dns.google"
|
||||||
"2606:4700:4700::1001#cloudflare-dns.com"
|
"2606:4700:4700::1001#cloudflare-dns.com"
|
||||||
"2001:4860:4860::8844#dns.google"
|
"2001:4860:4860::8844#dns.google"
|
||||||
] ++ (net'.dns or [ ]);
|
];
|
||||||
|
|
||||||
networkConfig = optionalAttrs (net ? DHCP) { inherit (net) DHCP; };
|
networkConfig = optionalAttrs (net ? DHCP) { inherit (net) DHCP; };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue