Mount ntfs disks using ntfs3

This commit is contained in:
Manuel Thalmann 2024-09-12 20:18:57 +02:00
parent 81c06bf5e0
commit 5987f326cc

View file

@ -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}")