From e8b09d2fe48ff02693ef1a02d7f7f94971b27b9f Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 2 Jul 2026 02:39:46 +0200 Subject: [PATCH] Add root label to mkfs command --- modules/filesystems.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/filesystems.nix b/modules/filesystems.nix index 1a33d05..482c6ee 100644 --- a/modules/filesystems.nix +++ b/modules/filesystems.nix @@ -1,7 +1,7 @@ { config, lib, ... }: { - # Note: for f2fs, create it with "sudo mkfs.f2fs -i -O extra_attr,flexible_inline_xattr,inode_checksum,sb_checksum,compression,lost_found /dev/sdxY" + # Note: for f2fs, create it with "sudo mkfs.f2fs -l root -i -O extra_attr,flexible_inline_xattr,inode_checksum,sb_checksum,compression,lost_found /dev/sdxY" fileSystems."/".options = lib.mkIf (config.fileSystems."/".fsType == "f2fs") (lib.mkAfter [ "discard" # Better (on f2fs) than fstrim