Created
April 13, 2020 16:25
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################### | |
# 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