This repository contains the necessary files to create a bootable USB drive with Ventoy and NixOS.
It extends the minimal NixOS installer to auto connect to a Tailnet and allow SSH access with a public key.
Perfect for installing NixOS on a headless machine.
- A USB drive with Ventoy freshly installed
- Mount the Ventoy USB drive first partition on
/tmp/ventoy. git clone [email protected]:luishfonseca/ventoy-nixos.git /tmp/ventoy- Populate the
/tmp/ventoy/iso-builder/contentfolder with:authorized_keys- Add your public key here.ssh_host_ed25519_key- Generate a new host key just for this.ts.key- A Tailscale auth key, should be ephemeral.
cd /tmp/ventoy/iso-builder./build_iso.sh- Add any other ISOs you want to boot from Ventoy to the
ISOfolder.
Now just boot from the USB drive and NixOS should be selected by default. After a couple minutes, you should be able to see it on your tailnet.
iso-builder/content files end up in the host system's nix store, keep that in mind.