diff --git a/switch_remote.sh b/switch_remote.sh index af27fb2..75f7374 100755 --- a/switch_remote.sh +++ b/switch_remote.sh @@ -4,9 +4,13 @@ set -euo pipefail ACTION=$1 HOST=$2 +CONFIG=$3 +set -x exec nixos-rebuild $ACTION \ --use-substitutes \ --no-build-nix \ --use-remote-sudo \ - --flake ".#$HOST" \ + --build-host $HOST \ + --target-host $HOST \ + --flake ".#${CONFIG}.noc.eh22.intern"