2023-11-04 10:14:42 +00:00
|
|
|
{pkgs, ...}:
|
2023-10-07 08:19:15 +00:00
|
|
|
# Following https://nixos.wiki/wiki/Intel_Graphics
|
2023-09-19 00:17:43 +00:00
|
|
|
{
|
2023-11-04 10:14:42 +00:00
|
|
|
boot.initrd.kernelModules = ["i915"]; # if not enabled, plymouth's distro logo wont show for some reason
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};};
|
2023-09-19 00:17:43 +00:00
|
|
|
|
|
|
|
hardware.opengl = {
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
intel-media-driver # libva_driver_name=ihd
|
2023-11-04 10:14:42 +00:00
|
|
|
vaapiIntel # libva_driver_name=i965 (older but works better for firefox/chromium)
|
2023-09-19 00:17:43 +00:00
|
|
|
vaapiVdpau
|
|
|
|
libvdpau-va-gl
|
|
|
|
intel-compute-runtime # intel opencl
|
|
|
|
intel-media-driver # intel vaapi
|
|
|
|
];
|
2023-11-04 10:14:42 +00:00
|
|
|
extraPackages32 = with pkgs; [pkgsi686Linux.vaapiIntel];
|
2023-09-19 00:17:43 +00:00
|
|
|
};
|
2023-11-04 10:14:42 +00:00
|
|
|
}
|