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

13 lines
276 B
Nix

{ lib, pkgs, ... }:
{
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
)
];
}