1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-11-30 06:49:43 +01:00
nixos-hardware/microchip/common/modules.nix
Mika Tammi 1723853180 microchip icicle-kit: Fixes to kernel
* Improve by changing from legacy extraConfig to the
  structuredExtraConfig style kerenl configuration.
* Remove few unneeded kernel modules from default configuration.
* Make kernelPatches, structuredExtraConfig and extraMeta overrideable.
* Change callPackage-style function to actually take the individual
  attributes from pkgs.
* Get rid of recursive syntax.

Signed-off-by: Mika Tammi <mika.tammi@unikie.com>
2024-01-05 12:36:28 +00:00

8 lines
245 B
Nix

{ pkgs, lib, config, ... }: {
boot = {
kernelPackages = pkgs.linuxPackagesFor (pkgs.callPackage ./bsp/linux-icicle-kit.nix {
inherit (config.boot) kernelPatches;
});
initrd.includeDefaultModules = lib.mkDefault false;
};
}