mediaserver: pin kernel to 6.12 LTS for NVIDIA 535 compatibility

NVIDIA 535's kernel module won't compile against kernel 7.x — the
DMA mapping API changed in a way the 535 source doesn't handle.
6.12 LTS is the highest kernel branch that's a well-tested combo
with the 535 driver, which we need on stable's nixpkgs to retain
Maxwell support for Jellyfin NVENC.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-29 13:37:48 +01:00
parent 877796173f
commit 5e1780b4fe

View file

@ -59,6 +59,11 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
# NVIDIA driver 535 doesn't compile against kernel 7.x (nv-dma.c API change),
# so override common.nix's linuxPackages_latest with the 6.12 LTS branch.
# 6.12 LTS + NVIDIA 535.x is a well-tested combination.
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_6_12;
# NVIDIA Quadro M2000 (Maxwell/GM206) — for Jellyfin NVENC hardware transcoding # NVIDIA Quadro M2000 (Maxwell/GM206) — for Jellyfin NVENC hardware transcoding
hardware.graphics.enable = true; hardware.graphics.enable = true;
hardware.nvidia = { hardware.nvidia = {