Skip to content

Instantly share code, notes, and snippets.

@thefloweringash
Created December 5, 2018 17:29
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 thefloweringash/3cf2b537934fb98db9f49ebd76c8e36e to your computer and use it in GitHub Desktop.
Save thefloweringash/3cf2b537934fb98db9f49ebd76c8e36e to your computer and use it in GitHub Desktop.
My implementation of a kernel module overlay
{
nixpkgs.overlays = [(
self: super: {
libcedrus = super.callPackage ./packages/libcedrus.nix {};
libvdpau-sunxi = super.callPackage ./packages/libvdpau-sunxi.nix {};
linuxPackagesFor = kernel: (super.linuxPackagesFor kernel).extend (kself: ksuper: {
sunxi-cedar-mainline = ksuper.callPackage ./packages/sunxi-cedar-mainline.nix {};
});
}
)];
boot.extraModulePackages = [
config.boot.kernelPackages.sunxi-cedar-mainline
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment