Install NixOS on Hetzner Online: Difference between revisions
m Category:Deployment added |
|||
(One intermediate revision by one other user not shown) | |||
Line 18: | Line 18: | ||
systemd.network = { | systemd.network = { | ||
enable = true; | enable = true; | ||
networks. | networks.default = { | ||
name = "enp1s0"; # The name of the interface | |||
DHCP = "ipv4"; | |||
addresses = [ | addresses = [ | ||
# Replace the | { | ||
# Replace the address with the one assigned to your machine | |||
Address = "2a01:4f8:AAAA:BBBB::1/64"; | |||
} | |||
]; | ]; | ||
gateway = [ "fe80::1" ]; | |||
linkConfig.RequiredForOnline = "routable"; | linkConfig.RequiredForOnline = "routable"; | ||
}; | }; | ||
Line 40: | Line 40: | ||
enable = true; | enable = true; | ||
networks."30-wan" = { | networks."30-wan" = { | ||
name = "enp1s0"; # The predictable name of the network interface | |||
DHCP = "no"; | |||
addresses = [ | addresses = [ | ||
# Replace the | # Replace the addresses with the ones assigned to your machine | ||
"A.B.C.D/26" | { | ||
Address = "A.B.C.D/26"; | |||
"2a01:4f8:AAAA:BBBB::1/64" | } | ||
{ | |||
Address = "2a01:4f8:AAAA:BBBB::1/64"; | |||
} | |||
]; | ]; | ||
gateway = [ | gateway = [ | ||
Line 156: | Line 159: | ||
[[Category:Cookbook]] | [[Category:Cookbook]] | ||
[[Category:Server]] | [[Category:Server]] | ||
[[Category:Deployment]] |