1 { config, lib, pkgs, ... }:
5 inInitrd = config.boot.initrd.supportedFilesystems.erofs or false;
6 inSystem = config.boot.supportedFilesystems.erofs or false;
11 config = lib.mkIf (inInitrd || inSystem) {
13 system.fsPackages = [ pkgs.erofs-utils ];
15 boot.initrd.availableKernelModules = lib.mkIf inInitrd [ "erofs" ];
17 # fsck.erofs is currently experimental and should not be run as a
18 # privileged user. Thus, it is not included in the initrd.