From 5e1780b4fe8c194cb6689c2a89bee944dfcffac8 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 29 Apr 2026 13:37:48 +0100 Subject: [PATCH] mediaserver: pin kernel to 6.12 LTS for NVIDIA 535 compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- hosts/hardware/FredOS-Mediaserver.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/hardware/FredOS-Mediaserver.nix b/hosts/hardware/FredOS-Mediaserver.nix index 6d00f59..fe68984 100644 --- a/hosts/hardware/FredOS-Mediaserver.nix +++ b/hosts/hardware/FredOS-Mediaserver.nix @@ -59,6 +59,11 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 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 hardware.graphics.enable = true; hardware.nvidia = {