mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 14:59:43 +01:00
16 lines
302 B
Nix
16 lines
302 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
boot.initrd.kernelModules = [ "i915" ];
|
||
|
|
||
|
environment.variables = {
|
||
|
VDPAU_DRIVER = lib.mkIf config.hardware.opengl.enable (lib.mkDefault "va_gl");
|
||
|
};
|
||
|
|
||
|
hardware.opengl.extraPackages = with pkgs; [
|
||
|
vaapiIntel
|
||
|
libvdpau-va-gl
|
||
|
intel-media-driver
|
||
|
];
|
||
|
}
|