mirror of
https://github.com/Username404-59/Dotfiles-NixOS.git
synced 2026-07-03 12:58:07 +02:00
Add root label to mkfs command
This commit is contained in:
parent
31d22b9ae1
commit
e8b09d2fe4
@ -1,7 +1,7 @@
|
|||||||
{ config, lib, ... }:
|
{ 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")
|
fileSystems."/".options = lib.mkIf (config.fileSystems."/".fsType == "f2fs")
|
||||||
(lib.mkAfter [
|
(lib.mkAfter [
|
||||||
"discard" # Better (on f2fs) than fstrim
|
"discard" # Better (on f2fs) than fstrim
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user