Install NixOS on Hetzner Cloud: Difference between revisions

imported>Onny
Instructions to setup IPv6 connectivity
imported>Onny
Instructions on how to install using nixos-infect
Line 2: Line 2:


== Installation ==
== Installation ==
=== nixos-infect ===
Beside the manual installation, one way to setup NixOS is to replace an existing installation, for example the latest Ubuntu image, with [https://github.com/elitak/nixos-infect nixos-infect]. The installation process follows these steps:
* Boot into the existing operating system, preferably Ubuntu or Debian
* Login as root or with root permissions
* Deploy your SSH public key for the current root user. This key will be used later for authentication into the NixOS system.
* Run following script. Replace <code>NIX_CHANNEL</code> variable with the version string you wish to install.
<syntaxHighlight lang=bash>
curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIX_CHANNEL=nixos-22.05 bash -x
</syntaxHighlight>
* Reboot into NixOS


== Network configuration ==
== Network configuration ==