From bec232a023e6e1685f5d2cbc879bc8fc33bb6f20 Mon Sep 17 00:00:00 2001 From: kalipso Date: Fri, 30 Jan 2026 20:24:43 +0100 Subject: [PATCH] [run-vm] override network cfg for local testing --- machines/modules/host_builder.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/machines/modules/host_builder.nix b/machines/modules/host_builder.nix index beb3a0fc..2460343e 100644 --- a/machines/modules/host_builder.nix +++ b/machines/modules/host_builder.nix @@ -165,6 +165,16 @@ rec { }); }; + systemd.network.networks."20-lan" = pkgs.lib.mkForce { + matchConfig.Type = "ether"; + networkConfig = { + Address = [ "10.0.0.${hosts.malobeo.hosts.${hostname}.network.hostId}/24" ]; + Gateway = "10.0.0.1"; + DNS = [ "1.1.1.1" ]; + DHCP = "no"; + }; + }; + boot.isContainer = pkgs.lib.mkForce false; services.timesyncd.enable = false; users.users.root.password = "";