dotfiles/hosts/h001/mods/hardware-transcoding.nix
RingOfStorms (Joshua Bell) 76758fb24a use new NAS for media storage
2025-12-30 10:33:06 -06:00

55 lines
1.3 KiB
Nix
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
config,
lib,
pkgs,
...
}:
{
############################
# Intel iGPU / VAAPI / QSV #
############################
# Modern graphics stack
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
# VAAPI driver for Broadwell and newer (your 11th gen)
intel-media-driver
# OpenCL / compute; 11th gen typically works with the non-legacy runtime
intel-ocl
intel-compute-runtime
# VPL runtime needed for modern QSV on newer Intel (11th gen+)
vpl-gpu-rt
# VAAPI ⇔ VDPAU bridge (optional but harmless)
libva-vdpau-driver
];
};
# Make sure the right VAAPI driver is used (iHD is correct for 11th gen)
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD";
};
# Optional but can help when services (like jellyfin) run in their own units
systemd.services.jellyfin.environment.LIBVA_DRIVER_NAME = lib.mkIf config.nixarr.enable "iHD";
########################
# Firmware for the iGPU
########################
# Ensures i915 GuC/HuC firmware is available (avoids “GuC firmware … ENOENT” errors)
hardware.enableAllFirmware = true;
########################
# (Optional) debugging
########################
environment.systemPackages = with pkgs; [
libva-utils # vainfo
intel-gpu-tools # intel_gpu_top
clinfo # OpenCL info
];
}