Files
nixos-configs/deploy.sh
2025-12-31 12:01:37 +01:00

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