2023-02-25 04:39:30 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
# enable opengl (headless)
|
|
|
|
|
2023-03-03 02:24:07 +01:00
|
|
|
# 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 ?
|
2023-03-03 21:42:29 +01:00
|
|
|
nixpkgs.config.vaapiSupport = true;
|
2023-03-03 02:24:07 +01:00
|
|
|
nixpkgs.config.libaomSupport = true;
|
2023-03-03 21:42:29 +01:00
|
|
|
nixpkgs.config.vdpauSupport = true; # intel
|
|
|
|
nixpkgs.config.libmfxSupport = true; # intel
|
2023-03-03 02:24:07 +01:00
|
|
|
|
2023-02-25 04:39:30 +01:00
|
|
|
hardware.opengl.enable = true;
|
2023-03-11 03:39:06 +01:00
|
|
|
hardware.opengl.extraPackages = with pkgs; [
|
|
|
|
mesa.drivers
|
|
|
|
vaapiIntel
|
|
|
|
libvdpau-va-gl
|
|
|
|
vaapiVdpau
|
|
|
|
intel-ocl
|
|
|
|
];
|
2023-02-25 04:39:30 +01:00
|
|
|
}
|