summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-08-28 12:57:36 +0530
committersinanmohd <sinan@sinanmohd.com>2024-08-28 12:57:36 +0530
commit3fad7111c3dc939356a81dfc88ca4198d82640e5 (patch)
treedb50a3c5da8552c24382011e9c35171979386924
parent944630a1a002e95c531c53ac9221a7d60f81ed5b (diff)
cez/specialisation/nvidia: optimize for large memory allocations
-rw-r--r--os/cez/hardware-configuration.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/cez/hardware-configuration.nix b/os/cez/hardware-configuration.nix
index e80ac86..5d1a24c 100644
--- a/os/cez/hardware-configuration.nix
+++ b/os/cez/hardware-configuration.nix
@@ -12,6 +12,11 @@
services.xserver.videoDrivers = [ "modesetting" ];
specialisation.nvidia.configuration = {
+ boot = {
+ kernelParams = [ "transparent_hugepage=always" ];
+ kernel.sysctl."vm.max_map_count" = 2147483642;
+ };
+
environment.variables = {
DRI_PRIME = 1;
__NV_PRIME_RENDER_OFFLOAD = 1;