14 lines
299 B
Bash
Executable File
14 lines
299 B
Bash
Executable File
hosts="$1"
|
|
shift
|
|
|
|
if [ -z "$hosts" ]; then
|
|
echo "No hosts to deploy"
|
|
exit 2
|
|
fi
|
|
|
|
for host in ${hosts//,/ }; do
|
|
nixos-rebuild build-vm --flake .\#$host --use-remote-sudo --use-substitutes $@
|
|
|
|
#nixos-rebuild build-vm --flake .\#$host --target-host $host --use-remote-sudo --use-substitutes $@
|
|
done
|