Skip to content

Commit

Permalink
nvidia: fix dpms on/off freezes by not setting env vars globally
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramblurr committed Feb 7, 2025
1 parent a219288 commit 8139045
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions modules-unstable/hardware/nvidia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,16 @@ in
];
};

environment.variables = {
# Required to run the correct GBM backend for nvidia GPUs on wayland
GBM_BACKEND = "nvidia-drm";
# Apparently, without this nouveau may attempt to be used instead
# (despite it being blacklisted)
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
# Hardware cursors are currently broken on wlroots
WLR_NO_HARDWARE_CURSORS = "1";
};
# No longer setting these here, and instead setting them on a per-app basis as needed
#environment.variables = {
# # Required to run the correct GBM backend for nvidia GPUs on wayland
# GBM_BACKEND = "nvidia-drm";
# # Apparently, without this nouveau may attempt to be used instead
# # (despite it being blacklisted)
# __GLX_VENDOR_LIBRARY_NAME = "nvidia";
# # Hardware cursors are currently broken on wlroots
# WLR_NO_HARDWARE_CURSORS = "1";
#};
environment.systemPackages = [
pkgs.nvitop
pkgs.nvtopPackages.nvidia
Expand Down

0 comments on commit 8139045

Please sign in to comment.