This commit is contained in:
iFargle 2023-07-15 21:26:08 +09:00
parent 46d2cf2c79
commit 8020d1446a
2 changed files with 12 additions and 3 deletions

View file

@ -20,6 +20,8 @@
opengl.driSupport32Bit = true;
opengl.driSupport = true;
opengl.extraPackages = with pkgs; [nvidia-vaapi-driver];
nvidia = {
open = true;
# powerManagement.enable = true;
@ -35,11 +37,18 @@
};
};
# Enable nVidia graphics
services.xserver.videoDrivers = [ "nvidia" ];
environment.variables = {
GBM_BACKEND = "nvidia-drm";
LIBVA_DRIVER_NAME = "nvidia";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
};
environment.systemPackages = with pkgs; [
# Fingerprint software
fprintd
# nVidia graphcis options
vulkan-loader
vulkan-validation-layers
vulkan-tools
];
}