at 23.11-pre 467 B view raw
1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let 6 inInitrd = any (fs: fs == "jfs") config.boot.initrd.supportedFilesystems; 7in 8{ 9 config = mkIf (any (fs: fs == "jfs") config.boot.supportedFilesystems) { 10 11 system.fsPackages = [ pkgs.jfsutils ]; 12 13 boot.initrd.kernelModules = mkIf inInitrd [ "jfs" ]; 14 15 boot.initrd.extraUtilsCommands = mkIf (inInitrd && !config.boot.initrd.systemd.enable) '' 16 copy_bin_and_libs ${pkgs.jfsutils}/sbin/fsck.jfs 17 ''; 18 }; 19}