BTRFS mount options

This commit is contained in:
Daniel Langbein 2023-09-24 21:57:17 +02:00
parent ecadfd1066
commit 0335fe3a8f
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -77,7 +77,7 @@
# BTRFS mount options. # BTRFS mount options.
# #
# Compression # compress=
# `nixos-generate-config` does not detect mount options, so we add them here. # `nixos-generate-config` does not detect mount options, so we add them here.
# https://nixos.wiki/wiki/Btrfs#Compression # https://nixos.wiki/wiki/Btrfs#Compression
# #
@ -85,8 +85,12 @@
# Under read intensive work-loads, specifying noatime significantly improves performance because no new access time information needs to be written. # 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 # https://man.archlinux.org/man/btrfs.5#NOTES_ON_GENERIC_MOUNT_OPTIONS
# #
# commit=
# The number of seconds between periodic commits to the filesystem. This is 30 seconds by default. Increasing this value reduces the frequency of periodic writes which can reduce wear on the disk. However, this also increases the risk of data loss during the event of an untimely crash.
# https://www.jwillikers.com/btrfs-mount-options
#
fileSystems = { fileSystems = {
"/".options = [ "compress=zstd" "noatime" ]; "/".options = [ "compress=zstd" "noatime" "commit=120" ];
}; };
# BTRFS scrub. # BTRFS scrub.