From bbace8f84bfcdff7f6b769b129faac33d44bcb52 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 18 Dec 2024 15:32:52 +0900 Subject: [PATCH] nix: increase cpu count This improves performance, especially when kvm is inaccessible. Signed-off-by: Ophestra Umiker --- test.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test.nix b/test.nix index a25a980..00bcba4 100644 --- a/test.nix +++ b/test.nix @@ -77,8 +77,13 @@ nixosTest { programs.sway.enable = true; - # Need to switch to a different GPU driver than the default one (-vga std) so that Sway can launch: - virtualisation.qemu.options = [ "-vga none -device virtio-gpu-pci" ]; + virtualisation.qemu.options = [ + # Need to switch to a different GPU driver than the default one (-vga std) so that Sway can launch: + "-vga none -device virtio-gpu-pci" + + # Increase Go test compiler performance: + "-smp 8" + ]; environment.fortify = { enable = true;