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.