The *correct* way to override the latest kernel config

Sure, wasn’t that what the original poster already suggested?

Like eg.:

{ pkgs, lib, ... }:

{
  boot.kernelPackages = pkgs.linuxPackages_latest;
  boot.kernelPatches = lib.singleton {
    name = "enable-lirc";
    patch = null;
    extraConfig = ''
      LIRC y
    '';
  };
}

Then you have the latest kernel with CONFIG_LIRC enabled.

1 Like