I’m trying to disable some options (like CONFIG_BPF
) that seem to be set in kernel/common-config.nix.
boot.kernelPackages = pkgs.linuxPackagesFor
(
pkgs.linuxPackages_6_5.kernel.override {
ignoreConfigErrors = true;
}
);
boot.kernelPatches = [
{
name = "osef";
patch = null;
extraStructuredConfig = with lib.kernel {
BPF = lib.mkForce no;
};
}
];
However building the config still yields CONFIG_BPF=y
without any warning :
$ grep CONFIG_BPF $(nix build --no-link --print-out-paths .#nixosConfigurations.nixos-mini-newton.config.boot.kernelPackages.kernel.configfile)
CONFIG_BPF=y
Is there an easy way to force my patch ? Thanks.
Similar but non-relevant :