from nothing to productive system, in just a few steps#

  • get latest successfully build image and write it to SD
  • create a swap partition at the end of the device
  • place an authorized_keys file into SD/root/.ssh
  • boot, ssh, swapon, nixos-generate-config
  • create/tweak/restore your config in /etc/nixos
  • (confirm swap partition is mentioned there)
  • nixos-rebuild switch, wait, party

## emergency (as in "unencrypted") remote shell server:
$ socat -d2 TCP-LISTEN:4444,fork,reuseaddr EXEC:/path/to/bash,pty,stderr,setsid,sigint,sane

## client, to connect to the server above:
$ socat FILE:`tty`,raw,echo=0 TCP:remote_host:4444