mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
16 lines
348 B
Bash
Executable File
16 lines
348 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Helper script to quickly deploy config to a host. Use it for rapid iteration.
|
|
export NIX_SSHOPTS="-A"
|
|
|
|
hosts="$1"
|
|
shift
|
|
|
|
if [ -z "$hosts" ]; then
|
|
echo "No hosts to deploy"
|
|
exit 2
|
|
fi
|
|
|
|
for host in ${hosts//,/ }; do
|
|
nixos-rebuild --flake .\#$host test --target-host $host --ask-sudo-password --use-substitutes $@
|
|
done
|