nixos/scripts/build-raspi-image.sh
Andreas Zweili 424c6ab2eb Use the compressed image
Apparently the script compresses the image anyway so why waste the CPU cycles
to uncompress it right afterwards.
2022-12-06 23:12:35 +01:00

10 lines
140 B
Bash
Executable File

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