diff --git a/lib/modules/partition/disks.nix b/lib/modules/partition/disks.nix index 3e651b78..75740de1 100644 --- a/lib/modules/partition/disks.nix +++ b/lib/modules/partition/disks.nix @@ -324,14 +324,17 @@ builtins.concatMap (_: [ probeScript - (builtins.concatStringsSep " " [ + (builtins.concatStringsSep " " ([ "sudo" "mount" "--mkdir" + ] ++ (lib.optionals (_.format == "ntfs") [ + "-t" "ntfs3" + ]) ++ [ (builtins.concatStringsSep " " (builtins.map (_: "-o ${_}") _.mountOptions)) (partPath _) (normalizePath "/${rootDir}/${_.mountPoint}") - ]) + ])) ]) (lib.lists.sortOn (_: normalizePath "/${_.mountPoint}")