11 lines
157 B
Bash
Executable File
11 lines
157 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
|
|
chmod 644 $image
|