add rpi img building docs

This commit is contained in:
Jake Hillion 2022-10-30 21:39:31 +00:00
parent 123a14d88b
commit 1792e425c2
2 changed files with 11 additions and 1 deletions

View File

@ -1,2 +1,12 @@
# nixos
### Building Raspberry Pi images
Raspberry Pi images that support Tailscale and headless SSH can be built using a command. It is easiest to run this command on AArch64 on Linux, such as within a Linux VM or Docker container on an M1 Mac.
docker run -v $PWD:/src -it --rm nixos/nix:latest /bin/sh
nix-env -f https://github.com/nix-community/nixos-generators/archive/master.tar.gz -i
cd /src
nixos-generate -f sd-aarch64-installer --system aarch64-linux -c hosts/microserver.home.ts.hillion.co.uk/default.nix
cp SOME_OUTPUT out.img.zst

@ -1 +1 @@
Subproject commit 1f411f096e6b0059c4d31fb14dc6f4f2e91659c7
Subproject commit fc65b7677ec44888a98c66d937dd78ad593b8381