This commit is contained in:
iFargle 2023-07-15 22:31:06 +09:00
parent 431c4bda88
commit 75beea4e76

View file

@ -19,10 +19,10 @@
opengl.enable = true; opengl.enable = true;
opengl.driSupport32Bit = true; opengl.driSupport32Bit = true;
opengl.driSupport = true; opengl.driSupport = true;
# opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ]; opengl.extraPackages = with pkgs; [ nvidia-vaapi-driver ];
nvidia = { nvidia = {
open = false; open = true;
powerManagement.enable = true; powerManagement.enable = true;
modesetting.enable = true; modesetting.enable = true;
prime = { prime = {
@ -36,18 +36,20 @@
}; };
}; };
# environment.variables = { services.xserver.videoDrivers = [ "nvidia" ];
# GBM_BACKEND = "nvidia-drm";
# LIBVA_DRIVER_NAME = "nvidia"; environment.variables = {
# __GLX_VENDOR_LIBRARY_NAME = "nvidia"; GBM_BACKEND = "nvidia-drm";
# }; LIBVA_DRIVER_NAME = "nvidia";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
# Fingerprint software # Fingerprint software
fprintd fprintd
# nVidia graphcis options # nVidia graphcis options
# vulkan-loader vulkan-loader
# vulkan-validation-layers vulkan-validation-layers
# vulkan-tools vulkan-tools
]; ];
} }