From 1792e425c2c6e20331c050ee66e44db5cba5af2c Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Sun, 30 Oct 2022 21:39:31 +0000 Subject: [PATCH] add rpi img building docs --- README.md | 10 ++++++++++ modules/secrets | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f8a2a26..9e30df7 100644 --- a/README.md +++ b/README.md @@ -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 + diff --git a/modules/secrets b/modules/secrets index 1f411f0..fc65b76 160000 --- a/modules/secrets +++ b/modules/secrets @@ -1 +1 @@ -Subproject commit 1f411f096e6b0059c4d31fb14dc6f4f2e91659c7 +Subproject commit fc65b7677ec44888a98c66d937dd78ad593b8381