Skip to content

Instantly share code, notes, and snippets.

@hjones2199
Created April 13, 2020 16:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hjones2199/11b45917a2944b692dac40015ea0fd41 to your computer and use it in GitHub Desktop.
Save hjones2199/11b45917a2944b692dac40015ea0fd41 to your computer and use it in GitHub Desktop.
Installs the zen patched linux kernel 5.6.3 on a NixOS system
####################################################
# Zen patched kernel with fsync support for gaming #
####################################################
{ pkgs, ... }:
{
boot.kernelPackages = let
linux_zen_pkg = { fetchurl, buildLinux, ... }@args:
buildLinux (args // rec {
version = "5.6.3-zen1";
modDirVersion = version;
src = fetchurl {
url =
"https://github.com/zen-kernel/zen-kernel/archive/v5.6.3-zen1.tar.gz";
sha256 =
"0z46xzyvrzvvfp43p26jsk21pyz7zjcyjq5h34aa6n4mg1has49d";
};
kernelPatches = [];
extraMeta.branch = "5.6";
} // (args.argsOverride or { }));
linux_zen = pkgs.callPackage linux_zen_pkg { };
in pkgs.recurseIntoAttrs (pkgs.linuxPackagesFor linux_zen);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment