From c6657a6a259c3ef61cf403353cb7a2747b16ef48 Mon Sep 17 00:00:00 2001 From: alisceon Date: Mon, 29 Sep 2025 17:51:11 +0200 Subject: [PATCH] networking fix --- hosts/tesla-nixos/configuration.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hosts/tesla-nixos/configuration.nix b/hosts/tesla-nixos/configuration.nix index ec523d8..d35e965 100644 --- a/hosts/tesla-nixos/configuration.nix +++ b/hosts/tesla-nixos/configuration.nix @@ -31,11 +31,19 @@ "d /var/lib/gitlab-runner/cache 0755 root root -" ]; + networking.nat = { + enable = true; + internalInterfaces = ["ve-+"]; + externalInterface = "ens18"; + }; + containers.gitlab-runner = { autoStart = true; ephemeral = false; - privateNetwork = false; + privateNetwork = true; + hostAddress = "10.250.0.1"; # host end of veth + localAddress = "10.250.0.2"; # container end of veth bindMounts = { "/var/lib/gitlab-runner" = {