From 3e407fbb96a8213d01e3126ef61311a9ec78afb9 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Fri, 30 Aug 2024 15:45:17 +0100 Subject: [PATCH] boron: support sched_ext in kernel --- hosts/boron.cx.ts.hillion.co.uk/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/boron.cx.ts.hillion.co.uk/default.nix b/hosts/boron.cx.ts.hillion.co.uk/default.nix index 95baa71..1871bd3 100644 --- a/hosts/boron.cx.ts.hillion.co.uk/default.nix +++ b/hosts/boron.cx.ts.hillion.co.uk/default.nix @@ -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.10.3-scx1/linux-v6.10.3-scx1.patch.zst"; + hash = "sha256-Fb9+Sns0sZAqJirAEArzda1Com0psHDuuri88g34o3g="; + decode = "${pkgs.zstd}/bin/unzstd"; + }; + extraConfig = '' + ''; + }]; ## Enable btrfs compression fileSystems."/data".options = [ "compress=zstd" ];