diff --git a/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix b/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix index d55ce23c..9d703415 100644 --- a/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix +++ b/hosts/plover/modules/hardware/hetzner-cloud-cx21.nix @@ -88,21 +88,19 @@ in matchConfig.Name = lib.concatStringsSep " " internalEthernetInterfaceNames; address = [ - "${IPv4.address}/32" - "${IPv6.address}/128" + "${IPv4.address}/16" + "${IPv6.address}/64" ]; + # Using the authoritative DNS server to enable accessing them nice + # internal services with domain names. + dns = [ "127.0.0.1" "::1" ]; + domains = [ config.networking.fqdn ]; + gateway = [ IPv4.gateway IPv6.gateway ]; - - # Using the authoritative DNS server to enable accessing them nice - # internal services with domain names. - networkConfig.DNS = [ - "127.0.0.1" - "::1" - ]; }; }; };