1
0
forked from clan/clan-core

clan flash: Use latest kernel with zfs support. bcachefs supported too.

This commit is contained in:
Luis Hebendanz 2024-05-18 23:47:17 +02:00
parent 64a98281f0
commit da5f363bee

View File

@ -1,10 +1,15 @@
{ lib, pkgs, ... }:
{
# use latest kernel we can support to get more hardware support
boot.kernelPackages =
lib.mkForce
(pkgs.zfs.override { removeLinuxDRM = pkgs.hostPlatform.isAarch64; }).latestCompatibleLinuxPackages;
boot.zfs.removeLinuxDRM = lib.mkDefault pkgs.hostPlatform.isAarch64;
# Enable bcachefs support
boot.supportedFilesystems.zfs = lib.mkForce false;
boot.kernelPackages = lib.mkOverride 0 pkgs.linuxPackages_latest;
boot.supportedFilesystems.bcachefs = lib.mkDefault true;
environment.systemPackages = with pkgs; [
bcachefs-tools
keyutils