feat(p330): enable gpu media acceleration

mandlm 2022-07-29 21:16:50 +02:00
parent ab0890f274
commit aba9de5278
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 14 additions and 0 deletions

View File

@ -43,6 +43,20 @@
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# GPU acceleration
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
vaapiVdpau
libvdpau-va-gl
];
};
# high-resolution display
hardware.video.hidpi.enable = lib.mkDefault true;
}