mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-02 22:13:29 +01:00
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)
This commit is contained in:
1 file changed
+9
-4
@@ -45,10 +45,15 @@ in
|
|||||||
|
|
||||||
isLTS = true;
|
isLTS = true;
|
||||||
|
|
||||||
kernelPatches = with pkgs.kernelPatches; [
|
kernelPatches =
|
||||||
bridge_stp_helper
|
with pkgs.kernelPatches;
|
||||||
request_key_helper
|
[
|
||||||
];
|
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.
|
# 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
|
# See: https://github.com/raspberrypi/linux/tree/rpi-6.18.y/arch/arm64/configs
|
||||||
|
|||||||
Reference in new issue
Block a user