https://github.com/crolbar/pi-nix-img
https://github.com/crolbar/pi-nix-img
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/crolbar/pi-nix-img
- Owner: crolbar
- Created: 2024-08-09T07:30:08.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-08-10T04:06:32.000Z (9 months ago)
- Last Synced: 2025-01-28T15:40:08.570Z (4 months ago)
- Language: Nix
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NixOS system config for a Raspberry Pi
Simple system config meant to be used as an image of a base system to flash the sd card with and start your nixos system from there.build the image
```
nix run nixpkgs#nixos-generators -- -f sd-aarch64 --flake .#pi --system aarch64-linux -o ./pi.sd
```cp it over from the symlink
```
cp pi.sd/sd-image/nixos-sd-image-24.11.20240804.cb9a96f-aarch64-linux.img .
```and flash it to the sd card (in my instance `/dev/sdc`)
```
sudo dd if=nixos-sd-image-24.11.20240804.cb9a96f-aarch64-linux.img of=/dev/sdc bs=1M status=progress
```# Resources found useful
https://blog.janissary.xyz/posts/nixos-install-custom-image