Install NixOS on Hetzner Cloud: Difference between revisions
m →Network configuration: swap nowiki for syntaxhighlighting |
→Network configuration: nixfmt, more commenting |
||
Line 53: | Line 53: | ||
networkConfig.DHCP = "ipv4"; | networkConfig.DHCP = "ipv4"; | ||
address = [ | address = [ | ||
# replace this | # replace this subnet with the one assigned to your instance | ||
"2a01:4f8:aaaa:bbbb::1/64" | "2a01:4f8:aaaa:bbbb::1/64" | ||
]; | ]; | ||
routes = [ | routes = [ { routeConfig.Gateway = "fe80::1"; } ]; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 72: | Line 70: | ||
# replace this address with the one assigned to your instance | # replace this address with the one assigned to your instance | ||
"A.B.C.D/32" | "A.B.C.D/32" | ||
# replace this subnet with the one assigned to your instance | |||
"2a01:4f8:aaaa:bbbb::1/64" | |||
]; | ]; | ||
routes = [ | routes = [ { | ||
routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; } | |||
{ routeConfig | { routeConfig.Gateway = "fe80::1"; } | ||
]; | ]; | ||
}; | }; |