diff --git a/lib/modules/partition.nix b/lib/modules/partition.nix index 10f038ce..58e8e108 100644 --- a/lib/modules/partition.nix +++ b/lib/modules/partition.nix @@ -221,6 +221,12 @@ description = "The mountpoint of the partition."; default = null; }; + + mountOptions = mkOption { + type = types.listOf types.str; + description = "The options to apply to the mount."; + default = []; + }; }; config = { @@ -278,6 +284,7 @@ (_: builtins.concatStringsSep " " [ "mount" "--mkdir" + (builtins.concatStringsSep " " (builtins.map (_: "-o ${_}") _.mountOptions)) (partPath _) (normalizePath "/${rootDir}/${_.mountPoint}") ])