From 14aadcba1a26c8c142453839f888afd0db8b2041 Mon Sep 17 00:00:00 2001 From: x123 Date: Thu, 27 Jun 2024 12:05:59 +0200 Subject: [PATCH] common/gpu/nvidia: vaapiVdpau -> libva-vdpau-driver --- common/gpu/nvidia/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/gpu/nvidia/default.nix b/common/gpu/nvidia/default.nix index 6141aaf..01542ee 100644 --- a/common/gpu/nvidia/default.nix +++ b/common/gpu/nvidia/default.nix @@ -3,7 +3,11 @@ { imports = [ ../24.05-compat.nix ]; services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ]; - hardware.graphics.extraPackages = with pkgs; [ - vaapiVdpau + hardware.graphics.extraPackages = [ + ( + if pkgs ? libva-vdpau-driver + then pkgs.libva-vdpau-driver + else pkgs.vaapiVdpau + ) ]; }