Genearate NixOS images for Raspberry Pi 4
- Modify
base-config.nix
as desired - Run
./build.sh
- Last line of output will be a path like
/nix/store/...-aarch64-linux.img
which contains a/sd-image/...-aarch64-linux.img.zst
file - Assuming
/dev/sdX
is the SD card you want to flash use:
zstd -vdcfT6 /nix/store/...-aarch64-linux.img/sd-image/...-aarch64-linux.img.zst | dd of=/dev/sdX status=progress bs=64K
- Time for some š„§