summary refs log tree commit diff
path: root/machines/wolfram/devices.nix
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2026-04-07 01:47:48 +0200
committerMel <mel@rnrd.eu>2026-04-07 01:47:48 +0200
commita7f0a80d370d591935db05a420010bdee7dac4b0 (patch)
tree7a11c335e44a150507b9c249562ae4573f13d73c /machines/wolfram/devices.nix
parent068ca4923b4def8885a49a7d54eae0909fadd498 (diff)
downloadminerals-a7f0a80d370d591935db05a420010bdee7dac4b0.tar.zst
minerals-a7f0a80d370d591935db05a420010bdee7dac4b0.zip
Tweak Wine+Proton CPU topology for Intel i5-14400F
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'machines/wolfram/devices.nix')
-rw-r--r--machines/wolfram/devices.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/machines/wolfram/devices.nix b/machines/wolfram/devices.nix
index 5a54681..3866465 100644
--- a/machines/wolfram/devices.nix
+++ b/machines/wolfram/devices.nix
@@ -120,4 +120,13 @@
     pulse.enable = true;
     jack.enable = true;
   };
+
+  # other tweaks
+  environment.variables = {
+    # wine+proton reads this variable to decide which cpus to run a given
+    # application on.
+    # we choose our p-cores (and the hyperthreads) of the intel i5-14400f
+    # and let the e-cores handle all the other system tasks.
+    WINE_CPU_TOPOLOGY = "12:0,1,2,3,4,5,6,7,8,9,10,11";
+  };
 }