try to fix modesetting

This commit is contained in:
Andreas Schaafsma 2024-12-07 18:02:36 +01:00
parent 5a36dbc083
commit 769e1c166a

View File

@ -16,7 +16,12 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
# Enable NVIDIA driver for X11 and Wayland # Enable NVIDIA driver for X11 and Wayland
services.xserver.videoDrivers = [ "amdgpu" "nvidia" ]; # without modesetting, x server will be run by nvidia
services.xserver.videoDrivers = [
"amdgpu"
"modesetting"
"nvidia"
];
# Enable OpenGL # Enable OpenGL
hardware.graphics = { hardware.graphics = {
@ -77,7 +82,7 @@ in
hardware.nvidia = { hardware.nvidia = {
# Modesetting is required. # Modesetting is required.
modesetting.enable = true; modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail. # Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking # Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead # up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead