nixos/initrd-network: support hetzner

volth 4c335289 ed657a98

Changed files
+1
nixos
modules
system
+1
nixos/modules/system/boot/initrd-network.nix
···
if [ "$1" = bound ]; then
ip address add "$ip/$mask" dev "$interface"
if [ -n "$router" ]; then
+
ip route add "$router" dev "$interface" # just in case if "$router" is not within "$ip/$mask" (e.g. Hetzner Cloud)
ip route add default via "$router" dev "$interface"
fi
if [ -n "$dns" ]; then