mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-12-16 05:51:14 +01:00
parent
850308db3e
commit
53b470587f
5 changed files with 29 additions and 14 deletions
15
common/gpu/intel.nix
Normal file
15
common/gpu/intel.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ 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
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue