Moved the nvidia fix into nvidia

This commit is contained in:
2025-06-20 14:09:35 +03:00
parent 016a6dbb7b
commit a149cce0af
2 changed files with 6 additions and 7 deletions

View File

@@ -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";

View File

@@ -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;