2023-07-15 21:42:37 +03:00
|
|
|
{
|
2023-03-03 10:09:13 +03:00
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
vdb = {
|
|
|
|
type = "disk";
|
2023-07-15 21:42:37 +03:00
|
|
|
device = "/dev/disk/by-diskseq/1";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
2023-07-01 20:22:31 +03:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
priority = 1;
|
2023-03-03 10:09:13 +03:00
|
|
|
name = "ESP";
|
2023-07-01 20:22:31 +03:00
|
|
|
start = "1M";
|
2023-03-03 10:09:13 +03:00
|
|
|
end = "128MiB";
|
2023-07-20 19:41:35 +03:00
|
|
|
type = "EF00";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
2023-07-01 20:22:31 +03:00
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
2023-03-03 10:09:13 +03:00
|
|
|
content = {
|
|
|
|
type = "btrfs";
|
|
|
|
extraArgs = [ "-f" ]; # Override existing partition
|
|
|
|
subvolumes = {
|
|
|
|
# Subvolume name is different from mountpoint
|
|
|
|
"/rootfs" = {
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
# Mountpoints inferred from subvolume name
|
|
|
|
"/home" = {
|
|
|
|
mountOptions = [ "compress=zstd" ];
|
|
|
|
};
|
|
|
|
"/nix" = {
|
|
|
|
mountOptions = [ "compress=zstd" "noatime" ];
|
|
|
|
};
|
|
|
|
"/test" = { };
|
2022-12-17 20:09:10 +03:00
|
|
|
};
|
|
|
|
};
|
2023-07-01 20:22:31 +03:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 10:09:13 +03:00
|
|
|
};
|
2022-08-29 12:45:19 +03:00
|
|
|
};
|
2022-08-25 22:46:17 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|