lots of unfree and intel acceleration

This commit is contained in:
2023-03-03 02:24:07 +01:00
parent 74f808b952
commit feb9d41ce1
3 changed files with 15 additions and 1 deletions

View File

@@ -2,6 +2,15 @@
{
# 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.libmfxSupport = true; # intel
nixpkgs.config.libaomSupport = true;
nixpkgs.config.vdpauSupport = true; # intel
hardware.opengl.enable = true;
#hardware.opengl.extraPackages = [ pkgs.mesa.drivers ];
hardware.opengl.extraPackages = with pkgs; [ mesa.drivers vaapiIntel libvdpau-va-gl vaapiVdpau intel-ocl ];