updated nvidia setting

This commit is contained in:
Nickiel12 2024-09-05 18:42:38 -07:00
parent 751f8e53fd
commit 0eebd14349
2 changed files with 11 additions and 3 deletions

View file

@ -68,6 +68,11 @@
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware.graphics.enable = true; hardware.graphics.enable = true;
hardware.nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
open = false;
};
networking = { networking = {
nat = { nat = {

View file

@ -43,9 +43,12 @@
}; };
hardware.graphics.enable = true; hardware.graphics.enable = true;
hardware.nvidia = {
# Optionally, you may need to select the appropriate driver version for your specific GPU. # Optionally, you may need to select the appropriate driver version for your specific GPU.
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; package = config.boot.kernelPackages.nvidiaPackages.stable;
hardware.nvidia.modesetting.enable = true; modesetting.enable = true;
open = false;
};
environment.sessionVariables = { environment.sessionVariables = {
# Resolves jellyfin black screen under hyprland # Resolves jellyfin black screen under hyprland