f2fs: enable compression

This commit is contained in:
Jörg Thalheim
2024-09-20 14:29:18 +02:00
committed by Mic92
parent a389f2edf6
commit 3a87d5a6ec
2 changed files with 14 additions and 3 deletions

6
flake.lock generated
View File

@@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1725377834, "lastModified": 1726842196,
"narHash": "sha256-tqoAO8oT6zEUDXte98cvA1saU9+1dLJQe3pMKLXv8ps=", "narHash": "sha256-u9h03JQUuQJ607xmti9F9Eh6E96kKUAGP+aXWgwm70o=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "e55f9a8678adc02024a4877c2a403e3f6daf24fe", "rev": "51994df8ba24d5db5459ccf17b6494643301ad28",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -49,6 +49,14 @@ let
type = "filesystem"; type = "filesystem";
format = "f2fs"; format = "f2fs";
mountpoint = "/"; mountpoint = "/";
extraArgs = [
"-O"
"extra_attr,inode_checksum,sb_checksum,compression"
];
# Recommendations for flash: https://wiki.archlinux.org/title/F2FS#Recommended_mount_options
mountOptions = [
"compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime,nodiscard"
];
}; };
}; };
}; };
@@ -69,4 +77,7 @@ in
boot.loader.grub.enable = lib.mkDefault true; boot.loader.grub.enable = lib.mkDefault true;
}; };
}; };
flake.checks.x86_64-linux.flash-installer-disk-test =
self.nixosConfigurations.flash-installer.config.system.build.installTest;
} }