Build RPi image locally
If you are developing or want to modify the starting RPi image, you’ll want to build the image locally. Follow the relevant instructions for your system.
NixOS
- Enable QEMU emulation of
aarch64by adding the following to yourconfiguration.nixboot.binfmt.emulatedSystems = [ "aarch64-linux" ]; - Build the RPi SD image with:
nix build .#rpi-image
Note
This builds the initial RPi SD image using the
sd_card_configuration.nixconfiguration. This image has the bare necessities to get started, keeping it small. If you want to build the final image fromconfiguration.nix, updateflake.nixaccordingly before runningnix build.