From a2163951e94e1e2469bcc67d0c34e2465733c966 Mon Sep 17 00:00:00 2001 From: autonomic-bot Date: Sun, 31 May 2026 03:58:08 +0000 Subject: [PATCH] fix(cc-ci-hetzner): drop empty IPv6 gateway/route (network-addresses-eth0 failure) nixos-infect emitted defaultGateway6.address="" and ipv6.routes=[{address=""; prefixLength=128}] for this v4-only Hetzner instance, so network-addresses-eth0.service failed at boot ("ip route add /128 ... any valid prefix is expected rather than /128"). The box has no real IPv6 (link-local only, kernel-managed), so remove the empty IPv6 gateway, address, and route. IPv4 unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) --- nix/hosts/cc-ci-hetzner/networking.nix | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/nix/hosts/cc-ci-hetzner/networking.nix b/nix/hosts/cc-ci-hetzner/networking.nix index 6d9a629..e2c58a1 100644 --- a/nix/hosts/cc-ci-hetzner/networking.nix +++ b/nix/hosts/cc-ci-hetzner/networking.nix @@ -15,10 +15,9 @@ "185.12.64.2" ]; defaultGateway = "172.31.1.1"; - defaultGateway6 = { - address = ""; - interface = "eth0"; - }; + # No IPv6 on this Hetzner instance (link-local only) — nixos-infect emitted an empty + # defaultGateway6/ipv6.route which made network-addresses-eth0.service fail + # ("ip route add /128" with no prefix). v4-only box, so no IPv6 gateway/route declared. dhcpcd.enable = false; usePredictableInterfaceNames = lib.mkForce false; interfaces = { @@ -26,11 +25,7 @@ ipv4.addresses = [ { address = "91.98.47.73"; prefixLength = 32; } ]; - ipv6.addresses = [ - { address = "fe80::9000:8ff:fe04:152e"; prefixLength = 64; } - ]; ipv4.routes = [{ address = "172.31.1.1"; prefixLength = 32; }]; - ipv6.routes = [{ address = ""; prefixLength = 128; }]; }; }; };