1 { config, lib, pkgs, ... }:
7 inInitrd = config.boot.initrd.supportedFilesystems.apfs or false;
12 config = mkIf (config.boot.supportedFilesystems.apfs or false) {
14 system.fsPackages = [ pkgs.apfsprogs ];
16 boot.extraModulePackages = [ config.boot.kernelPackages.apfs ];
18 boot.initrd.kernelModules = mkIf inInitrd [ "apfs" ];
20 # Don't copy apfsck into the initramfs since it does not support repairing the filesystem