system: ZFS minimum kernel

This commit is contained in:
kat witch 2021-11-11 19:50:42 +00:00
parent f7d156b88c
commit 3bc51e5ecb
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }: with lib; { config, lib, pkgs, ... }: with lib;
{ {
boot.kernelPackages = mkIf (builtins.getEnv "CI_PLATFORM" == "impure") (mkDefault pkgs.linuxPackages_latest); boot.kernelPackages = mkIf (elem "zfs" config.boot.supportedFilesystems) (mkDefault config.boot.zfs.package.latestCompatibleLinuxPackages);
hardware.enableRedistributableFirmware = lib.mkDefault true; hardware.enableRedistributableFirmware = lib.mkDefault true;
boot.tmpOnTmpfs = true; boot.tmpOnTmpfs = true;
boot.zfs.enableUnstable = mkIf (elem "zfs" config.boot.supportedFilesystems) true; boot.zfs.enableUnstable = mkIf (elem "zfs" config.boot.supportedFilesystems) true;