diff --git a/switch_remote.sh b/switch_remote.sh index 2f7bb3f..75f7374 100755 --- a/switch_remote.sh +++ b/switch_remote.sh @@ -4,11 +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 \ - --build-host "noc@10.20.25.2" \ - --target-host "noc@10.20.25.2" \ - --flake ".#$HOST" \ + --build-host $HOST \ + --target-host $HOST \ + --flake ".#${CONFIG}.noc.eh22.intern" diff --git a/systems/sketchy-router.noc.eh22.intern.nix b/systems/sketchy-router.noc.eh22.intern.nix index 6e4d490..3617e67 100644 --- a/systems/sketchy-router.noc.eh22.intern.nix +++ b/systems/sketchy-router.noc.eh22.intern.nix @@ -29,7 +29,7 @@ networking.nat = { enable = true; - externalInterface = "ens19"; + externalInterface = "ens18"; internalIPs = [ "10.20.25.0/24" ]; };