conditionally include nameservers

This commit is contained in:
Kiara Grouwstra 2025-06-30 13:11:00 +02:00 committed by kiara Grouwstra
parent 1808a09d21
commit 11d3af1748

View file

@ -21,11 +21,15 @@ in
## REVIEW: Do we actually need that, considering that we have static IPs?
useDHCP = mkDefault true;
nameservers = [
"95.215.185.6"
"95.215.185.7"
"2a00:51c0::5fd7:b906"
"2a00:51c0::5fd7:b907"
nameservers = mkMerge [
(mkIf config.fediversityVm.ipv4.enable [
"95.215.185.6"
"95.215.185.7"
])
(mkIf config.fediversityVm.ipv6.enable [
"2a00:51c0::5fd7:b906"
"2a00:51c0::5fd7:b907"
])
];
firewall.enable = false;