nix/modules/nixos/intel.nix

26 lines
541 B
Nix
Raw Normal View History

2023-10-03 11:52:44 -05:00
{
lib,
config,
pkgs,
...
}: {
2023-09-05 22:39:17 -05:00
nixpkgs.config = {
packageOverrides = pkgs: {
2023-10-03 11:52:44 -05:00
vaapiIntel = pkgs.vaapiIntel.override {enableHybridCodec = true;};
2023-09-05 22:39:17 -05:00
};
};
hardware = {
cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
opengl = {
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
vaapiIntel # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
vaapiVdpau
libvdpau-va-gl
];
};
};
2023-09-04 11:40:30 -05:00
}