make switch_remote.sh usabl

This commit is contained in:
lilly 2025-02-21 18:49:03 +01:00
parent 6eaf81e5a6
commit c21d2b97a7
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -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"