From 317843c8099b6dbe43aa8cbcf4cce9b9f0f49661 Mon Sep 17 00:00:00 2001 From: Petar Kirov Date: Sun, 3 Jul 2022 23:03:52 +0300 Subject: [PATCH] fix(nixos/sys): Switch Linux kernel from latest ZFS supported version to latest LTS kernel `zfs.package.latestCompatibleLinuxPackages` was recently bumped to 5.18 [0] in nixpkgs nixos-22.05, however that kernel release includes a change [1] that causes ZFS to fail to compile [2] [3]. To workaround this, downgrade the kernel to 5.15, until an OpenZFS release that includes the bug fix [4] is released. [0]: /~https://github.com/NixOS/nixpkgs/pull/178830 [1]: https://patchwork.kernel.org/project/linux-kbuild/patch/20210727205855.411487-35-keescook@chromium.org/ [2]: /~https://github.com/PetarKirov/dotfiles/runs/7166609186?check_suite_focus=true [3]: /~https://github.com/openzfs/zfs/issues/13528 [4]: /~https://github.com/openzfs/zfs/commit/ff7e405f83fbfcd763c4b7ed8b68258227765731 --- nixos/sys/boot.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/sys/boot.nix b/nixos/sys/boot.nix index aa1dd1f..8fc60c0 100644 --- a/nixos/sys/boot.nix +++ b/nixos/sys/boot.nix @@ -3,7 +3,7 @@ pkgs, ... }: { - boot.kernelPackages = pkgs.lib.mkOverride 1 config.boot.zfs.package.latestCompatibleLinuxPackages; + boot.kernelPackages = pkgs.lib.mkOverride 1 pkgs.linuxKernel.packages.linux_5_15; boot.kernel.sysctl."kernel.perf_event_paranoid" = 1; boot.supportedFilesystems = ["zfs"]; boot.zfs.forceImportRoot = false;