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; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
intel-media-driver intel-media-driver
vaapiIntel vaapiIntel
vaapiVdpau vaapiVdpau
libvdpau-va-gl libvdpau-va-gl
rocm-opencl-icd # rocm-opencl-icd
rocm-opencl-runtime # rocm-opencl-runtime
amdvlk # amdvlk
]; ];
driSupport = lib.mkDefault true; driSupport = lib.mkDefault true;
driSupport32Bit = 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 # CADDY
services.caddy = { services.caddy = {