mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-29 10:03:09 +01:00
22 lines
437 B
Nix
22 lines
437 B
Nix
{ pkgs, config, lib, host, ... }:
|
|
|
|
let inherit (import ../../hosts/${host}/options.nix) gpuType; in
|
|
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
|
|
];
|
|
};
|
|
}
|