boron: support sched_ext in kernel
Some checks failed
flake / flake (push) Has been cancelled

This commit is contained in:
Jake Hillion 2024-08-30 15:45:17 +01:00
parent 6cc70e117d
commit 7f46f91daa

View File

@ -35,6 +35,17 @@
### kernels available in NixOS do not seem to support this server's very
### modern hardware.
boot.kernelPackages = pkgs.linuxPackages_6_10;
### Apply patch to enable sched_ext which isn't yet available upstream.
boot.kernelPatches = [{
name = "sched_ext";
patch = pkgs.fetchpatch {
url = "https://github.com/sched-ext/scx-kernel-releases/releases/download/v6.11-rc1-scx1/linux-v6.11-rc1-scx1.patch.zst";
hash = "sha256-fIEH12mirypUymaFoThC2/uBlWDrJ3nyn98W8kIwS58=";
decode = "${pkgs.zstd}/bin/unzstd";
};
extraConfig = ''
'';
}];
## Enable btrfs compression
fileSystems."/data".options = [ "compress=zstd" ];