From 38fb735eab5de131d5088d473fe037111f8bb809 Mon Sep 17 00:00:00 2001 From: Danylo Hlynskyi Date: Fri, 11 Oct 2019 10:32:54 +0300 Subject: [PATCH] Make routes config explicit. (#39) This helps Hetzner Cloud, which doesn't populate routes by default and thus network doesn't work. Fixes https://github.com/elitak/nixos-infect/issues/25 --- nixos-infect | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos-infect b/nixos-infect index 091412c..8430461 100755 --- a/nixos-infect +++ b/nixos-infect @@ -105,6 +105,8 @@ EOF ipv6.addresses = [$(for a in "${eth0_ip6s[@]}"; do echo -n " $a"; done) ]; + ipv4.routes = [ { address = "${gateway}"; prefixLength = 32; } ]; + ipv6.routes = [ { address = "${gateway6}"; prefixLength = 32; } ]; }; $interfaces1 };