From 2b0449fb7abcfa6cd23eeef40e6dddd0a968765d Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 18 Dec 2024 14:21:08 +0900 Subject: [PATCH] nix: increase cpu count This improves performance, especially when kvm is inaccessible. Signed-off-by: Ophestra Umiker --- fipc/ipc.go | 4 ++++ test.nix | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 fipc/ipc.go diff --git a/fipc/ipc.go b/fipc/ipc.go new file mode 100644 index 0000000..a353727 --- /dev/null +++ b/fipc/ipc.go @@ -0,0 +1,4 @@ +// Package fipc exports types useful for talking to fortify. +package fipc + +// TODO 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;