From 80f32d8d4e2fb5bc8e1000a46667b747e8d89023 Mon Sep 17 00:00:00 2001 From: chn Date: Wed, 27 Aug 2025 18:05:36 +0800 Subject: [PATCH] modules.system.fileSystems: fix btrfs mount --- modules/system/fileSystems/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/fileSystems/default.nix b/modules/system/fileSystems/default.nix index 961822e4..4583b03a 100644 --- a/modules/system/fileSystems/default.nix +++ b/modules/system/fileSystems/default.nix @@ -61,9 +61,13 @@ inputs: # zstd:15 5m33s 7.16G # zstd:8 54s 7.32G # zstd:3 17s 7.52G - "compress-force=zstd" + # use compress instead of compress-force, since compress-force force all data trunk to be < 128K + # https://github.com/Zygo/bees/issues/298#issuecomment-3085228968 + "compress=zstd" # large btrfs volume need more time to mount (default 90s might not be enough) "x-systemd.mount-timeout=300s" + # default noflushoncommit can cause data loss, especially working with beesd, when power lost + "flushoncommit" ]; neededForBoot = true; };