From 31297aacc646e36b27c717a57da058eaa47c848f Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Fri, 26 Sep 2025 21:26:12 +0200 Subject: [PATCH] hardcoded networking setup for `nix run` vm 101 Signed-off-by: Kiara Grouwstra --- deployment/check/common/data-model.nix | 30 ++++++++++++++++++++++++++ deployment/run/tf-proxmox/main.tf | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/deployment/check/common/data-model.nix b/deployment/check/common/data-model.nix index f9d0bd69..09467b97 100644 --- a/deployment/check/common/data-model.nix +++ b/deployment/check/common/data-model.nix @@ -143,6 +143,36 @@ let system.stateVersion = "25.05"; services.qemuGuest.enable = true; + networking = { + firewall.enable = false; + usePredictableInterfaceNames = false; + interfaces.eth0.ipv4.addresses = [ + { + address = "95.215.187.101"; + prefixLength = 24; + } + ]; + interfaces.eth0.ipv6.addresses = [ + { + address = "2a00:51c0:13:1305::101"; + prefixLength = 64; + } + ]; + defaultGateway = { + address = "95.215.187.1"; + interface = "eth0"; + }; + defaultGateway6 = { + address = "2a00:51c0:13:1305::1"; + interface = "eth0"; + }; + nameservers = [ + "95.215.185.6" + "95.215.185.7" + "2a00:51c0::5fd7:b906" + "2a00:51c0::5fd7:b907" + ]; + }; users.users = environment.config.resources."operator-environment".login-shell.apply { resources = lib.filterAttrs (_name: value: value ? login-shell) ( diff --git a/deployment/run/tf-proxmox/main.tf b/deployment/run/tf-proxmox/main.tf index da2b8318..584032d3 100644 --- a/deployment/run/tf-proxmox/main.tf +++ b/deployment/run/tf-proxmox/main.tf @@ -148,7 +148,8 @@ resource "proxmox_virtual_environment_vm" "nix_vm" { network_device { model = "virtio" - bridge = "vnet1306" + bridge = "ovsbr0" + vlan_id = 1305 } operating_system {