From 0ba4d4976659eb609dc3bb36862690926e602e06 Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Tue, 27 Oct 2026 14:35:23 +0100 Subject: [PATCH] Open no windows for the interactive lab VMs driverInteractive uses the full QEMU build, which opens a GUI window per VM. Pass -display none for the interactive nodes so `nix run .#lab` stays in the terminal. Co-Authored-By: Claude Sonnet 5.5 --- tests/basic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/basic.nix b/tests/basic.nix index 4331d87..63b80b5 100644 --- a/tests/basic.nix +++ b/tests/basic.nix @@ -14,6 +14,10 @@ pkgs.testers.runNixOSTest { defaults.imports = [ tools ]; + # `driverInteractive` uses the full QEMU, which would open a window per VM; + # `nix run .#lab` wants the consoles in the terminal instead. + interactive.defaults.virtualisation.qemu.options = [ "-display" "none" ]; + nodes = { # Plays the ISP: hands out one WAN lease, answers DNS, and serves a page # that echoes the client address it sees (to prove NAT happens).