mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
57b05765c9
Issue #7117.
17 lines
362 B
Nix
17 lines
362 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = mkIf (any (fs: fs == "ntfs" || fs == "ntfs-3g") config.boot.supportedFilesystems) {
|
|
|
|
system.fsPackages = [ pkgs.ntfs3g ];
|
|
|
|
boot.initrd.kernelModules = mkIf inInitrd [ "jfs" ];
|
|
|
|
boot.initrd.extraUtilsCommands = mkIf inInitrd ''
|
|
copy_bin_and_libs ${pkgs.jfsutils}/sbin/fsck.jfs
|
|
'';
|
|
};
|
|
}
|