From 5deccae79de686b78329fce4f6496512ccd80813 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Mon, 22 Jun 2026 15:48:40 +0200 Subject: [PATCH] Add discard to rootfs options + a note for f2fs --- local.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/local.nix b/local.nix index 54d9652..1d4d6f7 100644 --- a/local.nix +++ b/local.nix @@ -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"; }