fix: nvidia with hyprland

This commit is contained in:
Ryan Yin
2023-07-29 16:53:49 +08:00
parent c8bd133e49
commit 2f96ab5464
2 changed files with 8 additions and 1 deletions

View File

@@ -20,7 +20,7 @@
firefox = {
enable = true;
enableGnomeExtensions = false;
# package = pkgs.firefox-wayland; # firefox with wayland support
package = pkgs.firefox-wayland; # firefox with wayland support
};
vscode = {

View File

@@ -77,8 +77,15 @@
# for Nvidia GPU
services.xserver.videoDrivers = ["nvidia"]; # will install nvidia-vaapi-driver by default
hardware.nvidia = {
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable;
# Modesetting is needed for most Wayland compositors
modesetting.enable = true;
# Use the open source version of the kernel module
# Only available on driver 515.43.04+
open = false;
powerManagement.enable = true;
};
virtualisation.docker.enableNvidia = true; # for nvidia-docker