nixos-config/machines/chungus/hardware-configuration/graphics.nix
Ingolf Wagner 8f6fa5939b
fix opengl
2024-08-17 19:01:35 +02:00

19 lines
668 B
Nix

# https://wiki.nixos.org/wiki/Accelerated_Video_Playback
{ pkgs, ... }:
{
hardware.graphics.enable = true;
hardware.graphics.extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
#vaapi-intel-hybrid
intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965
#vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
#vaapiVdpau
#libvdpau-va-gl
];
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ];
environment.sessionVariables = { LIBVA_DRIVER_NAME = "i965"; }; # Optionally, set the environment variable
}