From 5987f326cc6b7fc2355d4732c7c83d1eefb86e5b Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 12 Sep 2024 20:18:57 +0200 Subject: [PATCH] Mount `ntfs` disks using `ntfs3` --- lib/modules/partition/disks.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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}")