nixos-hardware/common/gpu/nvidia/default.nix

14 lines
276 B
Nix
Raw Normal View History

{ lib, pkgs, ... }:
{
2024-06-21 21:26:44 +00:00
imports = [ ../24.05-compat.nix ];
services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ];
hardware.graphics.extraPackages = [
(
if pkgs ? libva-vdpau-driver
then pkgs.libva-vdpau-driver
else pkgs.vaapiVdpau
)
];
}