Based off of patryk4815/ctftools
.
This repo allows a workflow which uses lima, which makes it very easy to run a light NixOS container on top of macOS, with heavy integration features.
However, consider using nix-installer.
Run the following in an environment that already has nix installed:
nix run github:nix-community/nixos-generators -- -f raw-efi -c configuration.nix -I nixpkgs=channel:nixos-22.11
Then feed the aarch64.yml
in this repo and the generated image to lima.