2023-07-15 18:42:37 +00:00
|
|
|
{
|
2023-03-03 07:09:13 +00:00
|
|
|
disko.devices = {
|
|
|
|
disk = {
|
|
|
|
vdb = {
|
|
|
|
type = "disk";
|
2023-07-15 18:42:37 +00:00
|
|
|
device = "/dev/disk/by-diskseq/1";
|
2023-03-03 07:09:13 +00:00
|
|
|
content = {
|
2023-07-01 17:22:31 +00:00
|
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
ESP = {
|
|
|
|
priority = 1;
|
2023-03-03 07:09:13 +00:00
|
|
|
name = "ESP";
|
2023-07-01 17:22:31 +00:00
|
|
|
start = "1M";
|
2023-03-03 07:09:13 +00:00
|
|
|
end = "128MiB";
|
2023-07-20 16:41:35 +00:00
|
|
|
type = "EF00";
|
2023-03-03 07:09:13 +00:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
format = "vfat";
|
|
|
|
mountpoint = "/boot";
|
|
|
|
};
|
2023-07-01 17:22:31 +00:00
|
|
|
};
|
|
|
|
root = {
|
|
|
|
size = "100%";
|
2023-03-03 07:09:13 +00: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 17:09:10 +00:00
|
|
|
};
|
|
|
|
};
|
2023-07-01 17:22:31 +00:00
|
|
|
};
|
|
|
|
};
|
2023-03-03 07:09:13 +00:00
|
|
|
};
|
2022-08-29 09:45:19 +00:00
|
|
|
};
|
2022-08-25 19:46:17 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|