nixos-test-driver: only use sharedMemory qemu config setting on linux

This commit is contained in:
Jacek Galowicz
2026-04-23 11:09:46 +01:00
parent 6668b5b381
commit 133e3555ff
+3 -1
View File
@@ -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 = [
{