Blank screen – booting on NixOS USB ISO

No problem:

  1. Get a copy of nixpkgs: git clone https://github.com/NixOS/nixpkgs
  2. Save the snippet to iso-image.nix
  3. Adapt the first line of the script that it points to location of nixpkgs (from step 1)
  4. run nix-build iso-image.nix to build the image.
  5. In the folder result/ you will find the iso-image, which can write to a USB stick with dd