From 133e3555ff1fda82966707d9502e0af3c81f2f8b Mon Sep 17 00:00:00 2001 From: Jacek Galowicz Date: Thu, 23 Apr 2026 10:55:49 +0100 Subject: [PATCH] nixos-test-driver: only use sharedMemory qemu config setting on linux --- nixos/lib/testing/driver.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/lib/testing/driver.nix b/nixos/lib/testing/driver.nix index c6802d61dd43..40584b10e00d 100644 --- a/nixos/lib/testing/driver.nix +++ b/nixos/lib/testing/driver.nix @@ -9,6 +9,8 @@ let inherit (config) sshBackdoor; + inherit (hostPkgs.stdenv.hostPlatform) isLinux; + # Reifies and correctly wraps the python test driver for # the respective qemu version and with or without ocr support testDriver = config.pythonTestDriverPackage.override { @@ -251,7 +253,7 @@ in # depending on whether debugging is enabled. # # If needed, this can still be turned off. - virtualisation.qemu.enableSharedMemory = lib.mkDefault true; + virtualisation.qemu.enableSharedMemory = lib.mkDefault isLinux; assertions = [ {