mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-28 08:08:49 +01:00
21 lines
375 B
Nix
21 lines
375 B
Nix
{ pkgs, config, lib, gpuType, ... }:
|
|
|
|
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
|
|
];
|
|
};
|
|
}
|