From 37c4613ab33678fd7c53e41f0c4bf667d2cbe1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= <tm@tlater.net> Date: Thu, 30 Jan 2025 04:01:09 +0800 Subject: [PATCH 1/2] fix: Add gateway for internet access in test envs --- configuration/hardware-specific/vm.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration/hardware-specific/vm.nix b/configuration/hardware-specific/vm.nix index 1783956..225a846 100644 --- a/configuration/hardware-specific/vm.nix +++ b/configuration/hardware-specific/vm.nix @@ -15,6 +15,9 @@ systemd.network.networks."10-eth0" = { matchConfig.Name = "eth0"; + gateway = [ + "192.168.9.1" + ]; networkConfig = { Address = "192.168.9.2/24"; }; From cf751d01992fec0e19957658f1866d98ed1ae720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= <tm@tlater.net> Date: Fri, 31 Jan 2025 22:31:10 +0800 Subject: [PATCH 2/2] feat: Don't run battery manager in test VM --- configuration/hardware-specific/vm.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configuration/hardware-specific/vm.nix b/configuration/hardware-specific/vm.nix index 225a846..db563fe 100644 --- a/configuration/hardware-specific/vm.nix +++ b/configuration/hardware-specific/vm.nix @@ -23,6 +23,9 @@ }; }; + # Don't run this + services.batteryManager.enable = lib.mkForce false; + # Both so we have a predictable key for the staging env, as well as # to have a static key for decrypting the sops secrets for the # staging env.