2022-11-05 20:00:33 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
host=$1
|
2022-12-06 23:12:35 +01:00
|
|
|
image=~/Downloads/$host.img.zst
|
2022-11-05 20:00:33 +01:00
|
|
|
|
2022-12-06 23:00:53 +01:00
|
|
|
cd ~/.nixos/
|
2022-11-05 20:00:33 +01:00
|
|
|
|
|
|
|
nix build .#images.$host &&
|
2022-12-06 23:12:35 +01:00
|
|
|
cp result/sd-image/*.img.zst $image
|
2023-04-01 12:08:02 +02:00
|
|
|
chmod 644 $image
|