Compare commits

...

2 commits

Author SHA1 Message Date
c21d2b97a7
make switch_remote.sh usabl 2025-02-21 18:49:03 +01:00
6eaf81e5a6
fix sketchy-router nating 2025-02-21 18:46:23 +01:00
2 changed files with 6 additions and 4 deletions

View file

@ -4,11 +4,13 @@ set -euo pipefail
ACTION=$1 ACTION=$1
HOST=$2 HOST=$2
CONFIG=$3
set -x
exec nixos-rebuild $ACTION \ exec nixos-rebuild $ACTION \
--use-substitutes \ --use-substitutes \
--no-build-nix \ --no-build-nix \
--use-remote-sudo \ --use-remote-sudo \
--build-host "noc@10.20.25.2" \ --build-host $HOST \
--target-host "noc@10.20.25.2" \ --target-host $HOST \
--flake ".#$HOST" \ --flake ".#${CONFIG}.noc.eh22.intern"

View file

@ -29,7 +29,7 @@
networking.nat = { networking.nat = {
enable = true; enable = true;
externalInterface = "ens19"; externalInterface = "ens18";
internalIPs = [ "10.20.25.0/24" ]; internalIPs = [ "10.20.25.0/24" ];
}; };