diff --git a/hosts/rx4/networking.nix b/hosts/rx4/networking.nix index 23c062b..aaaa1a6 100644 --- a/hosts/rx4/networking.nix +++ b/hosts/rx4/networking.nix @@ -1,9 +1,6 @@ -{ constants, ... }: - { networking.hostName = "rx4"; networking.domain = "sid.ovh"; - networking.nameservers = [ constants.hosts.sid.ip ]; # boot.kernel.sysctl = { # "net.ipv4.conf.all.forwarding" = 1; diff --git a/hosts/sid/services/coredns.nix b/hosts/sid/services/coredns.nix index e5c0904..67a055f 100644 --- a/hosts/sid/services/coredns.nix +++ b/hosts/sid/services/coredns.nix @@ -10,7 +10,9 @@ enable = true; config = with constants; '' .:53 { - bind 127.0.0.1 + bind 127.0.0.1 ${hosts.sid.ip} + forward . 1.1.1.1 8.8.8.8 + cache 30 hosts { ${hosts.sid.ip} ${ca-fqdn} @@ -22,8 +24,6 @@ ${hosts.vde.ip} vde.tail fallthrough } - forward . 1.1.1.1 8.8.8.8 - cache 30 log errors } diff --git a/hosts/vde/networking.nix b/hosts/vde/networking.nix index 0cede4e..d105960 100644 --- a/hosts/vde/networking.nix +++ b/hosts/vde/networking.nix @@ -1,30 +1,25 @@ -{ constants, ... }: - { - networking = { - nameservers = [ constants.hosts.sid.ip ]; - networkmanager.ensureProfiles.profiles = { - enp34s0-profile = { - connection = { - id = "enp34s0"; - type = "ethernet"; - interface-name = "enp34s0"; - }; - ipv4 = { - method = "auto"; - route-metric = 50; - }; + networking.networkmanager.ensureProfiles.profiles = { + enp34s0-profile = { + connection = { + id = "enp34s0"; + type = "ethernet"; + interface-name = "enp34s0"; }; - enp36s0-profile = { - connection = { - id = "enp36s0"; - type = "ethernet"; - interface-name = "enp36s0"; - }; - ipv4 = { - method = "auto"; - route-metric = 200; - }; + ipv4 = { + method = "auto"; + route-metric = 50; + }; + }; + enp36s0-profile = { + connection = { + id = "enp36s0"; + type = "ethernet"; + interface-name = "enp36s0"; + }; + ipv4 = { + method = "auto"; + route-metric = 200; }; }; };