NixOS aarch64 flake for Raspberry Pi 4 to control a Kingroon KP3S printer running Klipper.
Builds an SD-card image and allows nixos-rebuild switch
on the device all with the same configuration.nix
!
- USB Webcam Support via ustreamer
- Automatic connection to Wifi
- provisioned ssh keys
$ nix build '.#nixosConfigurations.sdcard.config.system.build.sdImage'
This assumes that your host machine is either aarch64 or you have configured binfmt / qemu, both resulting in it being able to build + run aarch64 binaries.
$ zstdcat result/sd-image/nixos-sd-image-23.05.20230421.2362848-aarch64-linux.img.zst | sudo dd of=/dev/sdc bs=8M oflag=direct status=progress iflag=fullblock
$ nixos-rebuild switch --flake '.#'