diff --git a/lib/types/bcachefs_filesystem.nix b/lib/types/bcachefs_filesystem.nix index 970717b5..c526639d 100644 --- a/lib/types/bcachefs_filesystem.nix +++ b/lib/types/bcachefs_filesystem.nix @@ -35,6 +35,9 @@ description = '' Options to pass to mount. The "X-mount.mkdir" option is always automatically added. + + These options will also be applied to subvolumes of this filesystem, + if the filesystem itself isn't mounted directly. ''; example = [ "noatime" @@ -319,6 +322,7 @@ "X-mount.subdir=${lib.removePrefix "/" subvolume.name}" ] ++ subvolume.mountOptions + ++ lib.optionals (config.mountpoint == null) config.mountOptions ); neededForBoot = true; };