1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-26 19:49:45 +01:00
nixos-hardware/common/gpu/nvidia/default.nix

14 lines
276 B
Nix
Raw Normal View History

{ lib, pkgs, ... }:
{
2024-06-21 23:26:44 +02: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
)
];
}