From ba907ef7b4f5962a11c20adb4036b6ddad26a000 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 22 Jun 2025 21:13:23 +0200 Subject: ... --- system-profiles/zfs.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'system-profiles/zfs.nix') diff --git a/system-profiles/zfs.nix b/system-profiles/zfs.nix index a93dddd2..f3147f9e 100644 --- a/system-profiles/zfs.nix +++ b/system-profiles/zfs.nix @@ -1,7 +1,8 @@ -{ pkgs, lib, ... } : { +{ config, pkgs, lib, ... } : { config = { boot = { - kernelPackages = pkgs.linuxPackages_6_12; + kernelPackages = lib.mkIf (!config.boot.kernel.llvm.enable) pkgs.linuxPackages_6_12; + kernel.llvm.kernel = lib.mkIf config.boot.kernel.llvm.enable pkgs.linux_6_12; zfs.package = pkgs.zfs_2_3; supportedFilesystems.zfs = true; -- cgit v1.2.3