Install NixOS on Hetzner Cloud: Difference between revisions
imported>Onny Created page with "{{Note|This article is about installing NixOS on Hetzner Cloud, which provides VPS cloud servers. It is not to be confused with Install_NixOS_on_Hetzner_Online|Hetzner Onlin..." |
imported>Onny Instructions to setup IPv6 connectivity |
||
Line 1: | Line 1: | ||
{{Note|This article is about installing NixOS on Hetzner Cloud, which provides VPS cloud servers. It is not to be confused with [[Install_NixOS_on_Hetzner_Online|Hetzner Online]], which provides dedicated bare-metal servers.}} | {{Note|This article is about installing NixOS on Hetzner Cloud, which provides VPS cloud servers. It is not to be confused with [[Install_NixOS_on_Hetzner_Online|Hetzner Online]], which provides dedicated bare-metal servers.}} | ||
== Installation == | |||
== Network configuration == | |||
The public IPv4 address of the server will be automatically obtained by NixOS via DHCP, no extra configuration needed. For IPv6 you have to assign the network address and gateway manually like this: | |||
<syntaxHighlight lang=nix> | |||
networking = { | |||
interfaces.ens3.ipv6.addresses = [{ | |||
address = "2a01:4f8:....:....::"; | |||
prefixLength = 64; | |||
}]; | |||
defaultGateway6 = { | |||
address = "fe80::1"; | |||
interface = "ens3"; | |||
}; | |||
}; | |||
</syntaxHighlight> | |||
Replace the <code>address</code> part with the correct IPv6 address of your instance. You can find it on the [https://console.hetzner.cloud Hetzner Cloud Console] by selecting the respective server and navigation to the "Networking" section in the left menu. |
Revision as of 07:10, 24 June 2022
Installation
Network configuration
The public IPv4 address of the server will be automatically obtained by NixOS via DHCP, no extra configuration needed. For IPv6 you have to assign the network address and gateway manually like this:
networking = {
interfaces.ens3.ipv6.addresses = [{
address = "2a01:4f8:....:....::";
prefixLength = 64;
}];
defaultGateway6 = {
address = "fe80::1";
interface = "ens3";
};
};
Replace the address
part with the correct IPv6 address of your instance. You can find it on the Hetzner Cloud Console by selecting the respective server and navigation to the "Networking" section in the left menu.