From a149cce0aff244cc4d9529ba7d89a9d201bb160b Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 20 Jun 2025 14:09:35 +0300 Subject: Moved the nvidia fix into nvidia --- modules/nvidia.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/nvidia.nix') diff --git a/modules/nvidia.nix b/modules/nvidia.nix index 9d052ad..0bc9b32 100644 --- a/modules/nvidia.nix +++ b/modules/nvidia.nix @@ -1,5 +1,11 @@ { config, ... }: { + # Fix "graphics reset" issue with nvidia GPU + # See section 10 of https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks + boot.extraModprobeConfig = '' + options nvidia NVreg_PreserveVideoMemoryAllocations=1 + ''; + # Enable OpenGL hardware.graphics = { enable = true; -- cgit v1.3.1