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