Install NixOS on Hetzner Cloud: Difference between revisions

imported>Mweinelt
Network configuration: Recommend a networkd based configuration
imported>Mweinelt
Installation: Refactor ISO install guide
Line 3: Line 3:
== Installation ==
== Installation ==


There are several ways to install NixOS, such as the 'traditional' ISO installation and nixos-infect.
There are several ways to install NixOS, such as the "traditional" ISO installation, [[nixos-infect]] or [[nixos-anywhere].


=== traditional ISO ===
=== From NixOS minimal ISO ===
 
# Create a new instance and power it off
* Create a machine with any OS, such as Ubuntu
# Switch to the ISO-Images tab and mount the NixOS minimal ISO
* Power it off
# Open the remote console (<code>>_</code> button)
* Mount the available nixos 22.11-minimal ISO
# Follow the usual [https://nixos.org/manual/nixos/stable/index.html#sec-installation-manual installation guide]
* Power the machine back on
#* Use EFI for arm64 instances, MBR for x86 instances
* Open the console (">_")
# Unmount the ISO and reboot
* Install NixOS as documented at https://nixos.org/manual/nixos/stable/index.html#sec-installation-manual (going for the "Legacy Boot (MBR)" variation)
* Power off the machine
* Unmount the iso
* Power on the machine


=== disko ===
=== disko ===