fix(deploy): assign unique WireGuard IPs per machine

Move WireGuard IP from shared configuration.nix to per-machine
hardware configs. douro = 10.0.0.4, batm3 = 10.0.0.5.

Previously both machines shared 10.0.0.4 which caused routing
conflicts on the VPS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-04-04 19:18:12 -04:00
commit cc109b2958
3 changed files with 7 additions and 1 deletions

View file

@ -22,8 +22,8 @@
}; };
# WireGuard VPN tunnel to VPS for remote SSH access # WireGuard VPN tunnel to VPS for remote SSH access
# IP address set per-machine in hardware/*.nix via networking.wireguard.interfaces.wg0.ips
wireguard.interfaces.wg0 = { wireguard.interfaces.wg0 = {
ips = [ "10.0.0.4/24" ];
listenPort = 51820; listenPort = 51820;
privateKeyFile = "/var/lib/wireguard/wg0.key"; privateKeyFile = "/var/lib/wireguard/wg0.key";

View file

@ -136,4 +136,7 @@
ExecStart = "${pkgs.xorg.xinput}/bin/xinput set-prop 'eGalax Inc. USB TouchController' 'Coordinate Transformation Matrix' 0 -1.268 1.147 -1.224 0 1.118 0 0 1"; ExecStart = "${pkgs.xorg.xinput}/bin/xinput set-prop 'eGalax Inc. USB TouchController' 'Coordinate Transformation Matrix' 0 -1.268 1.147 -1.224 0 1.118 0 0 1";
}; };
}; };
# WireGuard VPN address
networking.wireguard.interfaces.wg0.ips = [ "10.0.0.5/24" ];
} }

View file

@ -80,6 +80,9 @@
hybrid-sleep.enable = false; hybrid-sleep.enable = false;
}; };
# WireGuard VPN address
networking.wireguard.interfaces.wg0.ips = [ "10.0.0.4/24" ];
# Serial port access for bill validator/dispenser # Serial port access for bill validator/dispenser
services.udev.extraRules = lib.mkAfter '' services.udev.extraRules = lib.mkAfter ''
KERNEL=="ttyS[0-9]*", MODE="0666" KERNEL=="ttyS[0-9]*", MODE="0666"