2022-11-05 20:00:33 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
host=$1
|
2022-11-05 20:29:18 +01:00
|
|
|
image=~/Downloads/$host.img
|
2022-11-05 20:00:33 +01:00
|
|
|
|
|
|
|
cd ~/.nixos/
|
|
|
|
|
|
|
|
nix build .#images.$host &&
|
2022-11-05 20:29:18 +01:00
|
|
|
unzstd result/sd-image/*.img.zst -o $image
|
|
|
|
touch $image
|
|
|
|
chmod 644 $image
|