From 0cee229611fa55a8e6a278c6de4efc6a6b19200e Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sun, 24 Aug 2025 18:18:26 +0200 Subject: [PATCH] move stuff not needed in test out --- deployment/check/common/targetNode.nix | 3 --- paste | 34 ++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/deployment/check/common/targetNode.nix b/deployment/check/common/targetNode.nix index d461627d..a1de2273 100644 --- a/deployment/check/common/targetNode.nix +++ b/deployment/check/common/targetNode.nix @@ -3,7 +3,6 @@ config, lib, modulesPath, - sources, ... }: @@ -18,8 +17,6 @@ in imports = [ (modulesPath + "/profiles/qemu-guest.nix") (modulesPath + "/../lib/testing/nixos-test-base.nix") - "${sources.disko}/module.nix" - ../../../infra/common/proxmox-qemu-vm.nix ./sharedOptions.nix ../../../infra/common/nixos/users.nix ]; diff --git a/paste b/paste index 89b3ed52..9fdae1b9 100644 --- a/paste +++ b/paste @@ -10,7 +10,41 @@ command=(nix-instantiate --expr ' configuration = { imports = [ ./deployment/check/common/targetNode.nix + "${sources.nixpkgs}/nixos/modules/profiles/qemu-guest.nix" + "${sources.disko}/module.nix" ]; + disabledModules = [ "virtualisation/qemu-vm.nix" ]; + config = { + nix.nixPath = lib.mapAttrsToList (k: v: k + "=" + v) sources; + networking = { + nameservers = [ + "95.215.185.6" + "95.215.185.7" + "2a00:51c0::5fd7:b906" + "2a00:51c0::5fd7:b907" + ]; + interfaces.eth0.ipv4.addresses = [ + { + address = "95.215.187.203"; + prefixLength = 24; + } + ]; + interfaces.eth0.ipv6.addresses = [ + { + address = "2a00:51c0:13:1305::203"; + prefixLength = 64; + } + ]; + defaultGateway = { + address = "95.215.187.1"; + interface = "eth0"; + }; + defaultGateway6 = { + address = "2a00:51c0:13:1305::1"; + interface = "eth0"; + }; + }; + }; }; eval = import "${sources.nixpkgs}/nixos/lib/eval-config.nix" { system = builtins.currentSystem;