Skip to content

Instantly share code, notes, and snippets.

@frio
Created September 22, 2019 02:27
Show Gist options
  • Save frio/da1161b61606e89012a77ad7032e6dac to your computer and use it in GitHub Desktop.
Save frio/da1161b61606e89012a77ad7032e6dac to your computer and use it in GitHub Desktop.
{ config, pkgs, ... }:
{
boot.initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
"sdhci_pci"
"cryptd"
];
# boot.extraModulePackages = [ ];
nixpkgs.config.packageOverrides = pkgs: rec {
linux_5_2_ck = let old = pkgs.linux_5_2; in old.override {
# passthru = old.passthru;
modDirVersionArg = "5.2.16-ck1";
kernelPatches = old.kernelPatches ++ [
{
name = "ck";
patch = ./patches/5.2-ck1.patch;
}
];
};
linuxPackages_5_2_ck = pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_5_2_ck);
};
boot.kernelPackages = pkgs.linuxPackages_5_2_ck;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment