mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-12-27 23:58:49 +01:00
21 lines
447 B
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;
|
|
};
|
|
}
|