Skip to content

Instantly share code, notes, and snippets.

@wavewave
Created June 13, 2020 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavewave/08dcc99102b7b6f4d28aabb01cbf7e7f to your computer and use it in GitHub Desktop.
Save wavewave/08dcc99102b7b6f4d28aabb01cbf7e7f to your computer and use it in GitHub Desktop.
kernel package examples
let
machine =
{ config, resources, pkgs, ... }:
let
kpkgs =
with pkgs;
let linux_4_19_80 = callPackage ../../nix/linux-4.19.80.nix {
kernelPatches =
[ kernelPatches.bridge_stp_helper
kernelPatches.modinst_arg_list_too_long
kernelPatches.export_kernel_fpu_functions."4.14"
];
};
in recurseIntoAttrs (linuxPackagesFor linux_4_19_80);
lustre = with kpkgs; pkgs.callPackage ../../nix/lustre.nix { inherit kernel; };
in
{
...
boot.kernelPackages = kpkgs;
boot.extraModulePackages = [ lustre.kmod ];
...
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment