diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-06-20 14:09:35 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-06-20 14:09:35 +0300 |
| commit | a149cce0aff244cc4d9529ba7d89a9d201bb160b (patch) | |
| tree | 97eacb52a876659262417c84688b0aa2e62b781c | |
| parent | 016a6dbb7b84639a326a6bc6896d1e3101ac39d7 (diff) | |
Moved the nvidia fix into nvidia
| -rw-r--r-- | modules/desktop.nix | 7 | ||||
| -rw-r--r-- | modules/nvidia.nix | 6 |
2 files changed, 6 insertions, 7 deletions
diff --git a/modules/desktop.nix b/modules/desktop.nix index f819186..b0028de 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -9,13 +9,6 @@ phoronix-test-suite ]; - # 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 - ''; - - # Automaticaly mount C drive fileSystems."/mnt/c" = { device = "/dev/nvme1n1p4"; 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; |
