Enable hardware acceleration on Camelot

This commit is contained in:
Victor Mignot 2023-11-24 20:16:35 +01:00
parent ac727a1e1d
commit 0a8bba47e7
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D
2 changed files with 3 additions and 0 deletions

View file

@ -40,6 +40,8 @@
git
];
hwAccelerationGPU = "intel";
machineUsers = {
dala = {
description = "Dala";

View file

@ -14,6 +14,7 @@ with lib;
hardware.opengl = {
enable = config.hwAccelerationGPU != null;
extraPackages = with pkgs; [
(mkIf (config.hwAccelerationGPU == "intel") intel-media-driver)
libvdpau-va-gl
vaapiVdpau
];