Install NixOS on Hetzner Online: Difference between revisions

imported>Farcaller
m Add the sudo note
imported>Golddranks
No edit summary
Line 87: Line 87:
The main principle is that we will go from: Rescue system, install Nix, kexec into a NixOS system, finally install the system.
The main principle is that we will go from: Rescue system, install Nix, kexec into a NixOS system, finally install the system.


First, reboot the machine in Rescue mode. Make sure to select your SSH public key. SSH into the machine:
First, reboot the machine in Rescue mode. Note that just enabling Rescue mode from the dashboard doesn't immediately reboot; make sure to power cycle the server. The Rescue mode runs from a RAM disk, so make also sure that you have enough RAM. Temporarily rescaling to at least 8 GiB of RAM during the bootstrapping process should help. Make sure to select your SSH public key. SSH into the machine:


<syntaxHighlight lang=bash>
<syntaxHighlight lang=bash>