Use the compressed image
Apparently the script compresses the image anyway so why waste the CPU cycles to uncompress it right afterwards.
This commit is contained in:
parent
1bb7c2fb34
commit
424c6ab2eb
|
@ -1,11 +1,9 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
host=$1
|
||||
image=~/Downloads/$host.img
|
||||
image=~/Downloads/$host.img.zst
|
||||
|
||||
cd ~/.nixos/
|
||||
|
||||
nix build .#images.$host &&
|
||||
unzstd result/sd-image/*.img.zst -o $image
|
||||
touch $image
|
||||
chmod 644 $image
|
||||
cp result/sd-image/*.img.zst $image
|
||||
|
|
Loading…
Reference in New Issue