adding nvidia and removing amd

This commit is contained in:
Chris Cochrun 2023-05-05 12:31:56 -05:00
parent cbd67c8744
commit c9346ceb76

View file

@ -27,16 +27,18 @@
'';
};
hardware.opengl = {
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
rocm-opencl-icd
rocm-opencl-runtime
amdvlk
# rocm-opencl-icd
# rocm-opencl-runtime
# amdvlk
];
driSupport = lib.mkDefault true;
driSupport32Bit = lib.mkDefault true;
@ -45,7 +47,13 @@
#];
};
environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV";
nvidia = {
package = config.boot.kernelPackages.nvidiaPackages.beta;
modesetting.enable = true;
};
}
# environment.variables.AMD_VULKAN_ICD = lib.mkDefault "RADV";
# CADDY
services.caddy = {