Apparently the script compresses the image anyway so why waste the CPU cycles to uncompress it right afterwards.
10 lines
140 B
Bash
Executable File
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
|