mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-05 20:56:33 +05:30
17 lines
338 B
Bash
Executable File
17 lines
338 B
Bash
Executable File
#!/usr/bin/env bash
|
|
export NIX_SSHOPTS="-A"
|
|
|
|
build_remote=false
|
|
|
|
hosts="$1"
|
|
shift
|
|
|
|
if [ -z "$hosts" ]; then
|
|
echo "No hosts to deploy"
|
|
exit 2
|
|
fi
|
|
|
|
for host in ${hosts//,/ }; do
|
|
nixos-rebuild --flake .\#$host switch --build-host $(hostname) --target-host $host --use-remote-sudo --log-format internal-json -v |& nom --json $@
|
|
done
|