nixos/scripts/build-raspi-image.sh
Andreas Zweili 48895a1a74 Don't remove the result after building a Raspi image
This should keep the built artifacts around a bit longer.
2022-11-09 19:13:09 +01:00

12 lines
173 B
Bash
Executable File

#!/usr/bin/env bash
host=$1
image=~/Downloads/$host.img
cd ~/.nixos/
nix build .#images.$host &&
unzstd result/sd-image/*.img.zst -o $image
touch $image
chmod 644 $image