mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-25 22:35:03 +01:00
BTRFS mount options
This commit is contained in:
parent
a2c463987e
commit
cf47eebfaa
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user