55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
main = {
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
type = "EF00";
|
|
size = "500M";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
persistent = {
|
|
size = "20G";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "f2fs";
|
|
mountpoint = "/persistent";
|
|
};
|
|
};
|
|
nix = {
|
|
size = "100%";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "f2fs";
|
|
mountpoint = "/nix";
|
|
};
|
|
};
|
|
|
|
};
|
|
};
|
|
};
|
|
};
|
|
nodev = {
|
|
"/" = {
|
|
fsType = "tmpfs";
|
|
mountOptions = [
|
|
"defaults"
|
|
"size=2G"
|
|
"mode=755"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
fileSystems."/persistent".neededForBoot = true;
|
|
fileSystems."/nix".neededForBoot = true;
|
|
|
|
}
|