Extend the image build script

This commit is contained in:
Andreas Zweili 2022-11-05 20:29:18 +01:00
parent 7fb0a60a20
commit 1df48d32c9
1 changed files with 5 additions and 1 deletions

View File

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