Created
January 10, 2018 12:07
-
-
Save clefru/7ba61d71f9fe2667efe280ca63d87dfc to your computer and use it in GitHub Desktop.
my ZFS kernel overrides for nixos
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
boot.kernelPackages = | |
let origKernel = pkgs.linux_4_14; | |
k10temp = { | |
name = "k10temp restructure"; | |
patch = ./k10temp.diff; | |
}; | |
ryzenPatch = { | |
name = "Ryzen temperature support"; | |
patch = ./ryzen-temp.diff; | |
}; | |
amdgpuPatch = { | |
name = "AMDGPU hang patch, https://bugs.freedesktop.org/attachment.cgi?id=136343"; | |
patch = ./amdgpu_hang.diff; | |
}; | |
myKernel = origKernel.override { | |
kernelPatches = origKernel.kernelPatches ++ [ amdgpuPatch k10temp ryzenPatch ]; | |
}; | |
linuxPackages = (pkgs.linuxPackagesFor myKernel).extend ( | |
self: super: { | |
zfs = super.zfs.overrideAttrs (oldAttrs: rec { | |
src = pkgs.fetchFromGitHub { | |
owner = "zfsonlinux"; | |
repo = "zfs"; | |
rev = "504bfc8b49bf27a6e8900808cc3b9650460383ee"; | |
sha256 = "178i20v9h1pl5sb3g52vpkfjb212xghf1k2g5k2wpaw7r0rdks5n"; | |
}; | |
}); | |
}); | |
in pkgs.recurseIntoAttrs linuxPackages; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment