From 3261bcda4f67879414bc02ca76eba97542de47eb Mon Sep 17 00:00:00 2001 From: kleinbem Date: Thu, 12 Nov 2026 00:59:55 +0000 Subject: [PATCH] raspberry-pi/kernel: pass `kernelPatches` from `@args` NixOS passes `boot.kernelPatches` as a `kernelPatches` list argument passed to `kernel.override` which is passed here. Assisted-by: Claude Code (Claude Opus 5.5) --- raspberry-pi/common/kernel.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/raspberry-pi/common/kernel.nix b/raspberry-pi/common/kernel.nix index af437cc6..f1529475 100644 --- a/raspberry-pi/common/kernel.nix +++ b/raspberry-pi/common/kernel.nix @@ -45,10 +45,15 @@ in isLTS = true; - kernelPatches = with pkgs.kernelPatches; [ - bridge_stp_helper - request_key_helper - ]; + kernelPatches = + with pkgs.kernelPatches; + [ + bridge_stp_helper + request_key_helper + ] + # From kernel.override, e.g. NixOS' boot.kernelPatches. Read from args, not a + # named argument: callPackage would fill that with the pkgs.kernelPatches set. + ++ (args.kernelPatches or [ ]); # Override nixpkgs common-config.nix defaults that conflict with the RPi vendor defconfigs. # See: https://github.com/raspberrypi/linux/tree/rpi-6.18.y/arch/arm64/configs