2024-07-09 10:04:33 +00:00
|
|
|
{
|
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
main = {
|
|
|
|
#device = builtins.elemAt disks 0;
|
2024-10-20 23:54:25 +00:00
|
|
|
device = "/dev/mmcblk0"; # DEVICE_NAME
|
2024-07-09 10:04:33 +00:00
|
|
|
type = "disk";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
priority = 1;
|
|
|
|
name = "ESP";
|
|
|
|
size = "500M";
|
|
|
|
type = "EF00";
|
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
|
|
|
content = {
|
|
|
|
type = "btrfs";
|
|
|
|
extraArgs = [ "-f" ];
|
|
|
|
subvolumes = {
|
|
|
|
"/rootfs" = {
|
|
|
|
mountOptions = [ "compress=zstd" ];
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
mountOptions = [ "compress=zstd" ];
|
|
|
|
mountpoint = "/home";
|
|
|
|
};
|
|
|
|
"/nix" = {
|
|
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
|
|
mountpoint = "/nix";
|
|
|
|
};
|
|
|
|
"/swap" = {
|
|
|
|
mountOptions = [ "subvol=swap" ];
|
|
|
|
mountpoint = "/swap";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-10-20 23:54:25 +00:00
|
|
|
}
|