{ pkgs, ... }:

{
  # OpenGL
  #hardware.opengl.enable = true;
  #hardware.opengl.driSupport = true;
  #hardware.opengl.driSupport32Bit = true;
  #hardware.opengl.extraPackages = with pkgs; [
   # rocmPackages.clr.icd
   # intel-ocl
   # intel-media-driver
   # vaapiIntel
   # vaapiVdpau
   # libvdpau-va-gl
 # ];

  # OpenGL
 hardware = {

    #video.hidpi.enable = lib.mkDefault true;

    opengl = {
      enable = true;

      extraPackages = with pkgs; [
	  rocmPackages.clr.icd
	  intel-ocl
	  intel-media-driver
	  vaapiIntel
	  vaapiVdpau
	  libvdpau-va-gl
	  ];

      driSupport = true;
      driSupport32Bit = true;
      #extrapackages32 = with pkgs.pkgsi686Linux; [ vaapiIntel libva   libvdpau-va-gl   vaapiVdpau ];
     };
    };
}
