summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;