mirror of
https://github.com/nix-community/disko.git
synced 2026-01-14 02:08:26 +01:00
The alternative would be to do this automatically if format=="vfat" and mountpoint=="/boot", but it's better to be upfront about this. Fixes #527
41 lines
1 KiB
Nix
41 lines
1 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
device = "/dev/disk/by-path/pci-0000:02:00.0-nvme-1";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
end = "500M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
};
|
|
};
|
|
root = {
|
|
name = "root";
|
|
end = "-0";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "f2fs";
|
|
mountpoint = "/";
|
|
extraArgs = [
|
|
"-O"
|
|
"extra_attr,inode_checksum,sb_checksum,compression"
|
|
];
|
|
mountOptions = [
|
|
"compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime,nodiscard"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|