Skip to content

Instantly share code, notes, and snippets.

@a-h
Forked from wpiekutowski/README.md
Created September 11, 2022 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save a-h/4e7cd15a4bd33b6c007dc41cb84892b8 to your computer and use it in GitHub Desktop.
Save a-h/4e7cd15a4bd33b6c007dc41cb84892b8 to your computer and use it in GitHub Desktop.
Apple Virtualization NixOS ISO

Run NixOS ISO using Apple Virtualization framework (for example UTM or vftool)

  • download or build ISO: nix-build -A iso_minimal_new_kernel.aarch64-linux '<nixpkgs/nixos/release.nix>'
  • copy ISO: scp "ip_addr:result/iso/*" .
  • mount: hdiutil *.iso
  • copy kernel and initrd: cp /Volumes/nixos-minimal-21/boot/Image /Volumes/nixos-minimal-21/boot/initrd .
  • find and copy kernel params: less /Volumes/nixos-minimal-21/EFI/boot/grub.cfg
  • append console=hvc0 to params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment