From 6eaf81e5a61ef776335c192983a18b6faf4f6a48 Mon Sep 17 00:00:00 2001 From: lilly Date: Fri, 21 Feb 2025 18:46:23 +0100 Subject: [PATCH 1/2] fix sketchy-router nating --- switch_remote.sh | 2 -- systems/sketchy-router.noc.eh22.intern.nix | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/switch_remote.sh b/switch_remote.sh index 2f7bb3f..af27fb2 100755 --- a/switch_remote.sh +++ b/switch_remote.sh @@ -9,6 +9,4 @@ 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" \ 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" ]; }; From c21d2b97a70486e2ec616c1416707f93763149ec Mon Sep 17 00:00:00 2001 From: lilly Date: Fri, 21 Feb 2025 18:49:03 +0100 Subject: [PATCH 2/2] make switch_remote.sh usabl --- switch_remote.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"