first commit
This commit is contained in:
13
deploy.sh
Executable file
13
deploy.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user