59 lines
1.5 KiB
Nix
59 lines
1.5 KiB
Nix
{
|
|
boot.loader.grub = {
|
|
enable = true;
|
|
efiSupport = true;
|
|
device = "nodev";
|
|
};
|
|
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
device = "/dev/disk/by-id/mmc-064GEA_0x55da4659";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
size = "500M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = ["umask=0077"];
|
|
};
|
|
};
|
|
luks = {
|
|
size = "100%";
|
|
content = {
|
|
type = "luks";
|
|
name = "crypted";
|
|
settings.allowDiscards = true;
|
|
content = {
|
|
type = "filesystem";
|
|
format = "f2fs";
|
|
mountpoint = "/";
|
|
extraArgs = [
|
|
"-i"
|
|
"-O"
|
|
"extra_attr,inode_checksum,sb_checksum,compression"
|
|
];
|
|
mountOptions = [
|
|
"compress_algorithm=zstd:6,compress_chksum,atgc,gc_merge,lazytime,nodiscard"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
encryptedSwap = {
|
|
size = "4G";
|
|
content = {
|
|
type = "swap";
|
|
randomEncryption = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|