boron: support sched_ext in kernel
All checks were successful
flake / flake (push) Successful in 1m45s
All checks were successful
flake / flake (push) Successful in 1m45s
This commit is contained in:
parent
264799952e
commit
343b34b4dc
@ -35,6 +35,25 @@
|
|||||||
### kernels available in NixOS do not seem to support this server's very
|
### kernels available in NixOS do not seem to support this server's very
|
||||||
### modern hardware.
|
### modern hardware.
|
||||||
boot.kernelPackages = pkgs.linuxPackages_6_10;
|
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-c4UlXsVOHGe0gvL69K9qTMWqCR8as25qwhfNVxCXUTs=";
|
||||||
|
decode = "${pkgs.zstd}/bin/unzstd";
|
||||||
|
excludes = [ "Makefile" ];
|
||||||
|
};
|
||||||
|
extraConfig = ''
|
||||||
|
BPF y
|
||||||
|
BPF_EVENTS y
|
||||||
|
BPF_JIT y
|
||||||
|
BPF_SYSCALL y
|
||||||
|
DEBUG_INFO_BTF y
|
||||||
|
FTRACE y
|
||||||
|
SCHED_CLASS_EXT y
|
||||||
|
'';
|
||||||
|
}];
|
||||||
|
|
||||||
## Enable btrfs compression
|
## Enable btrfs compression
|
||||||
fileSystems."/data".options = [ "compress=zstd" ];
|
fileSystems."/data".options = [ "compress=zstd" ];
|
||||||
|
Loading…
Reference in New Issue
Block a user