1
0

hosts/carbon: Move DNS specific network config to DNS file

This commit is contained in:
clerie 2024-07-14 00:49:52 +02:00
parent 090e2d6e48
commit 38345f6dbe
Signed by: clerie
GPG Key ID: BD9F56480870BAD2
2 changed files with 11 additions and 10 deletions

View File

@ -25,13 +25,6 @@
"; ";
networking.useDHCP = false; networking.useDHCP = false;
# Local Router IPs
networking.interfaces.lo.ipv6.addresses = [
{ address = "fd00:152:152::1"; prefixLength = 128; } # Anycast
];
networking.interfaces.lo.ipv4.addresses = [
{ address = "10.152.0.1"; prefixLength = 32; } # Anycast
];
# Network # Network
## LTE-Uplink ## LTE-Uplink
networking.vlans."enp1s0.102" = { networking.vlans."enp1s0.102" = {
@ -39,9 +32,6 @@
interface = "enp1s0"; interface = "enp1s0";
}; };
# Use Anycast Nameservers
networking.nameservers = [ "fd00:152:152::1" "10.152.0.1" ];
networking.nat = { networking.nat = {
enableIPv6 = true; enableIPv6 = true;
enable = true; enable = true;

View File

@ -2,6 +2,14 @@
{ {
# Loopbacks for DNS resolver IPs
networking.interfaces.lo.ipv6.addresses = [
{ address = "fd00:152:152::1"; prefixLength = 128; } # Anycast
];
networking.interfaces.lo.ipv4.addresses = [
{ address = "10.152.0.1"; prefixLength = 32; } # Anycast
];
networking.firewall.allowedUDPPorts = [ 53 ]; networking.firewall.allowedUDPPorts = [ 53 ];
networking.firewall.allowedTCPPorts = [ 53 ]; networking.firewall.allowedTCPPorts = [ 53 ];
@ -20,4 +28,7 @@
}; };
}; };
# Use Anycast Nameservers
networking.nameservers = [ "fd00:152:152::1" "10.152.0.1" ];
} }