From 2cb4c6a686a149cc3fb796bafe245b6c8f259547 Mon Sep 17 00:00:00 2001 From: ISnortPennies Date: Sun, 8 Jan 2023 12:37:54 -0500 Subject: [PATCH] Tweaked vm settings --- configuration.nix | 2 ++ misc/Windows.xml | 37 +++++++++++++++++++------------------ modules/vfio.nix | 6 +++--- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/configuration.nix b/configuration.nix index 7a39d52..3b02383 100644 --- a/configuration.nix +++ b/configuration.nix @@ -8,6 +8,8 @@ EDITOR = "nvim"; }; }; + # boot faster + systemd.services.NetworkManager-wait-online.enable = false; nix = { settings = { auto-optimise-store = true; diff --git a/misc/Windows.xml b/misc/Windows.xml index f8b7cd1..93dc574 100644 --- a/misc/Windows.xml +++ b/misc/Windows.xml @@ -3,25 +3,25 @@ 035e02d8-04d3-05e5-4706-900700080009 16777216 16777216 - 16 + 16 - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + hvm @@ -58,6 +58,7 @@ + diff --git a/modules/vfio.nix b/modules/vfio.nix index d696339..dba7448 100644 --- a/modules/vfio.nix +++ b/modules/vfio.nix @@ -33,9 +33,9 @@ if [ "$GUEST_NAME" == "Windows" ]; then if [ "$OPERATION" == "start" ]; then - systemctl set-property --runtime -- user.slice AllowedCPUs=0-7,16-23 - systemctl set-property --runtime -- system.slice AllowedCPUs=0-7,16-23 - systemctl set-property --runtime -- init.scope AllowedCPUs=0-7,16-23 + systemctl set-property --runtime -- user.slice AllowedCPUs=8-15,24-31 + systemctl set-property --runtime -- system.slice AllowedCPUs=8-15,24-31 + systemctl set-property --runtime -- init.scope AllowedCPUs=8-15,24-31 fi if [ "$OPERATION" == "stopped" ]; then