nixos-config/machines/cherry/hardware-configuration/graphics.nix
2024-10-08 23:34:42 +09:00

17 lines
504 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
#intel-vaapi-driver # For older processors. LIBVA_DRIVER_NAME=i965
];
#hardware.graphics.enable32Bit = true;
#hardware.graphics.extraPackages32 = with pkgs.pkgsi686Linux; [ intel-vaapi-driver ];
environment.systemPackages = [
pkgs.libva-utils # for CLI tools like : vainfo
];
}