BTRFS mount options

This commit is contained in:
Daniel Langbein 2023-09-23 22:30:13 +02:00
parent a2c463987e
commit cf47eebfaa
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -75,12 +75,18 @@
MaxFileSec=7day 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 = { fileSystems = {
"/".options = [ "compress=zstd" ]; "/".options = [ "compress=zstd" "noatime" ];
}; };
# BTRFS scrub. # BTRFS scrub.