Allow passing extra params to remote script

This commit is contained in:
Charlotte Van Petegem 2021-04-17 11:34:57 +02:00
parent fa4f665c75
commit 4fa7c1cbf0
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -2,4 +2,7 @@
set -euo pipefail set -euo pipefail
set -x set -x
nixos-rebuild --flake .#$1 --target-host root@$1 $2 hostname=$1
shift 1
nixos-rebuild --flake .#$hostname --target-host root@$hostname "$@"