Allow passing extra params to remote script
This commit is contained in:
parent
fa4f665c75
commit
4fa7c1cbf0
1 changed files with 4 additions and 1 deletions
|
@ -2,4 +2,7 @@
|
|||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
nixos-rebuild --flake .#$1 --target-host root@$1 $2
|
||||
hostname=$1
|
||||
shift 1
|
||||
|
||||
nixos-rebuild --flake .#$hostname --target-host root@$hostname "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue