zaneyos/config/system/intel-gpu.nix

21 lines
375 B
Nix
Raw Normal View History

2024-01-24 01:18:39 +01:00
{ pkgs, config, lib, gpuType, ... }:
2024-01-24 01:18:39 +01:00
lib.mkIf ("${gpuType}" == "intel") {
nixpkgs.config.packageOverrides =
pkgs: {
vaapiIntel = pkgs.vaapiIntel.override {
enableHybridCodec = true;
};
};
# OpenGL
hardware.opengl = {
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
}