mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 18:59:07 +01:00
networking/underlay: Set some nameservers explicitly when not using dhcp
This commit is contained in:
parent
c2c6b63427
commit
6cb7a548ea
1 changed files with 5 additions and 0 deletions
|
|
@ -56,6 +56,11 @@ in
|
||||||
Gateway = cfg.gateway;
|
Gateway = cfg.gateway;
|
||||||
GatewayOnLink = true;
|
GatewayOnLink = true;
|
||||||
};
|
};
|
||||||
|
dns = lib.mkIf (!cfg.useDhcp) [
|
||||||
|
"1.1.1.1#cloudflare-dns.com"
|
||||||
|
"8.8.8.8#dns.google"
|
||||||
|
"9.9.9.9#dns.quad9.net"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue