fix zfs latest again

This commit is contained in:
Jörg Thalheim
2024-09-24 11:37:48 +02:00
parent afbac7f08c
commit 44e17e9ee6
3 changed files with 29 additions and 4 deletions

View File

@@ -1,15 +1,11 @@
{
lib,
pkgs,
config,
...
}:
{
# If we also need zfs, we can use the unstable version as we otherwise don't have a new enough kernel version
boot.zfs.package = pkgs.zfsUnstable;
boot.kernelPackages = lib.mkIf config.boot.zfs.enabled (
lib.mkForce config.boot.zfs.package.latestCompatibleLinuxPackages
);
# Enable bcachefs support
boot.supportedFilesystems.bcachefs = lib.mkDefault true;