Add discard to rootfs options + a note for f2fs

This commit is contained in:
Username404-59 2026-06-22 15:48:40 +02:00
parent e61866900c
commit 5deccae79d
Signed by: Username404-59
GPG Key ID: F3A1878B14F5F0D7

View File

@ -55,7 +55,9 @@ in
}; };
}; };
fileSystems."/".options = [ "noatime" ]; fileSystems."/".options = [ "noatime" "discard" ];
# Note: for f2fs, create it with "sudo fsck.f2fs -O extra_attr,flexible_inline_xattr,inode_checksum,sb_checksum,compression,lost_found /dev/sdxY"
# & add "noatime,discard" (done here) and "compress_algorithm=lzo-rle,compress_chksum,atgc,gc_merge,checkpoint=enable,checkpoint_merge,fsync_mode=posix,nat_bits" to mount options
networking.hostName = if !isLaptop then "lizard" else "lizard-portable"; networking.hostName = if !isLaptop then "lizard" else "lizard-portable";
} }