The *correct* way to override the latest kernel config

Note that the equivalent of structuredExtraConfig is called extraStructuredConfig in kernelPatches:

{ lib, ... }:

{
  boot.kernelPatches = lib.singleton {
    name = "enable-lirc";
    patch = null;
    extraStructuredConfig = with lib.kernel; {
      LIRC = yes;
    };
  };
}
1 Like