config/hardware/gpu/intel.nix

23 lines
699 B
Nix

{ config, pkgs, lib, ... }:
{
# enable opengl (headless)
# https://github.com/NixOS/nixpkgs/blob/nixos-22.11/pkgs/development/libraries/ffmpeg/generic.nix
# https://github.com/NixOS/nixpkgs/blob/nixos-22.11/pkgs/development/libraries/jellyfin-ffmpeg/default.nix
nixpkgs.config.openglSupport = true; # why is this not set by hardware.opengl.enable ?
nixpkgs.config.vaapiSupport = true;
nixpkgs.config.libaomSupport = true;
nixpkgs.config.vdpauSupport = true; # intel
nixpkgs.config.libmfxSupport = true; # intel
hardware.opengl.enable = true;
hardware.opengl.extraPackages = with pkgs; [
mesa.drivers
vaapiIntel
libvdpau-va-gl
vaapiVdpau
intel-ocl
];
}