mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-12-03 03:03:59 +01:00
Vinput's streaming Zipformer models have unbounded dynamic shapes, so OpenVINO cannot compile them for the GPU or the NPU; the `openvino` provider and ai's Intel NPU enablement could never run on the NPU (noted as unverified in WORKAROUNDS WA-017). Remove the backend option, the daemon's OpenVINO library path, and the intel-npu module enable, and update the eval test, README and WORKAROUNDS (drop WA-016 and WA-017). Keep Vinput's stock package and its bundled sherpa-onnx (1.13.4): the fork-based and nixpkgs-master sherpa overrides existed only to provide the `openvino` provider, so drop package.nix with them. Assisted-by: opencode (DeepSeek V4.1 Flash)
53 lines
1.7 KiB
Nix
53 lines
1.7 KiB
Nix
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
# kvm virtualization support
|
|
boot.initrd.kernelModules = [ ];
|
|
boot.kernelModules = [
|
|
"kvm-intel"
|
|
# Provide a connected DRM output when the NVIDIA-attached monitors are off.
|
|
# Niri exposes it as Virtual-1 for headless Sunshine sessions.
|
|
"vkms"
|
|
];
|
|
boot.extraModprobeConfig = ''
|
|
options kvm_intel nested=1
|
|
# Create Virtual-1 as soon as vkms loads, including during normal physical sessions.
|
|
options vkms create_default_dev=1
|
|
'';
|
|
boot.extraModulePackages = [ ];
|
|
|
|
# Intel Graphics
|
|
# https://wiki.nixos.org/wiki/Intel_Graphics
|
|
|
|
services.xserver.videoDrivers = [ "modesetting" ];
|
|
|
|
hardware.graphics = {
|
|
enable = true;
|
|
extraPackages = with pkgs; [
|
|
# Required for modern Intel GPUs (Xe iGPU and ARC)
|
|
intel-media-driver # VA-API (iHD) userspace
|
|
vpl-gpu-rt # oneVPL (QSV) runtime
|
|
|
|
# Optional (compute / tooling):
|
|
intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
|
|
];
|
|
};
|
|
|
|
environment.sessionVariables = {
|
|
LIBVA_DRIVER_NAME = "iHD"; # Prefer the modern iHD backend
|
|
};
|
|
|
|
# May help if FFmpeg/VAAPI/QSV init fails (esp. on Arc with i915):
|
|
hardware.enableRedistributableFirmware = true;
|
|
# (dropped) `i915.enable_guc=3`: i915's `enable_guc` is a "dangerous" option
|
|
# (it taints the kernel), and since Alder Lake the driver already auto-enables
|
|
# HuC + GuC submission on non-TGL/RKL Gen12+ platforms -- including this Arrow
|
|
# Lake-S iGPU, where auto = `HuC | GuC submission` = 3. Re-add only if
|
|
# VAAPI/QSV init regresses.
|
|
|
|
# May help services that have trouble accessing /dev/dri (e.g., jellyfin/plex):
|
|
# users.users.<service>.extraGroups = [ "video" "render" ];
|
|
}
|