From cf47eebfaaba64cd2e0957402354fcd2efd214ab Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sat, 23 Sep 2023 22:30:13 +0200 Subject: [PATCH] BTRFS mount options --- modules/base.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/base.nix b/modules/base.nix index cf7c075..153ea2e 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -75,12 +75,18 @@ MaxFileSec=7day ''; - # BTRFS compression. + # BTRFS mount options. + # + # Compression + # `nixos-generate-config` does not detect mount options, so we add them here. + # https://nixos.wiki/wiki/Btrfs#Compression + # + # noatime + # Under read intensive work-loads, specifying noatime significantly improves performance because no new access time information needs to be written. + # https://man.archlinux.org/man/btrfs.5#NOTES_ON_GENERIC_MOUNT_OPTIONS # - # `nixos-generate-config` does not detect mount options, so we add them here. - # https://nixos.wiki/wiki/Btrfs#Compression fileSystems = { - "/".options = [ "compress=zstd" ]; + "/".options = [ "compress=zstd" "noatime" ]; }; # BTRFS scrub.