zaneyos/config/system/intel-opengl.nix

21 lines
447 B
Nix

{ pkgs, config, lib, deviceProfile, ... }:
lib.mkIf ("${deviceProfile}" == "intel-laptop") {
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
# OpenGL
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
driSupport = true;
driSupport32Bit = true;
};
}