Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philtaken/rpi-image-flake
flake for raspberry pi 2 and 4 images
https://github.com/philtaken/rpi-image-flake
Last synced: 20 days ago
JSON representation
flake for raspberry pi 2 and 4 images
- Host: GitHub
- URL: https://github.com/philtaken/rpi-image-flake
- Owner: PhilTaken
- Created: 2021-09-28T18:32:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-05T00:58:18.000Z (almost 3 years ago)
- Last Synced: 2024-11-07T00:48:36.345Z (2 months ago)
- Language: Nix
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NixOS builds for Raspberry Pi
Here's a simple flake to build a basic NixOS image for the Raspberry Pi 2 and 4.
## Build Instructions
Either
`nix build github:PhilTaken/rpi-image-flake#images.rpi4` (or images.rpi2, whatever you want to build)
or
1. Clone the repo
1. Apply your changes
1. `nix build .#images.rpi4`The output will be under `result/sd-image/nixos-sd-image-$(version).$(date).$(hash)-aarch64-linux.img.zst`.
To obtain the unpacked image file, just copy it somewhere and unpack with `unzstd`:1. `cp result/sd-image/nixos-sd-image-21.05.20220115.0fd9ee1-aarch64-linux.img.zst .`
1. `unzstd nixos-sd-image-21.05.20220115.0fd9ee1-aarch64-linux.img.zst`## Install/Flash instructions
As with any image for the Raspberry Pi, just burn the file onto a sd card with your tool of choice.
I use `dd` but theres plenty of tools out there.`dd if=nixos-sd-image-21.05.20220115.0fd9ee1-aarch64-linux.img of=/dev/sdcard bs=4M status=progress`