2024-09-22 12:47:17 +00:00
|
|
|
{ ... }:
|
2023-06-30 05:38:38 +00:00
|
|
|
|
|
|
|
{
|
2024-02-22 23:25:44 +00:00
|
|
|
disko.devices = {
|
2024-09-20 04:23:44 +00:00
|
|
|
disk.primary = {
|
2024-09-22 12:47:17 +00:00
|
|
|
device = "/dev/sda";
|
2024-02-22 23:25:44 +00:00
|
|
|
type = "disk";
|
|
|
|
content = {
|
|
|
|
type = "gpt";
|
2024-09-20 04:23:44 +00:00
|
|
|
partitions = {
|
|
|
|
boot = {
|
2024-02-22 23:25:44 +00:00
|
|
|
start = "0";
|
|
|
|
end = "1MiB";
|
2024-09-20 04:23:44 +00:00
|
|
|
type = "EF02";
|
|
|
|
};
|
2023-06-30 05:38:38 +00:00
|
|
|
|
2024-09-20 04:23:44 +00:00
|
|
|
# You can't really have a btrfs-layered boot so this'll have to do.
|
|
|
|
ESP = {
|
|
|
|
priority = 1;
|
2024-02-22 23:25:44 +00:00
|
|
|
start = "1MiB";
|
|
|
|
end = "256MiB";
|
2024-09-20 04:23:44 +00:00
|
|
|
type = "EF00";
|
2024-02-22 23:25:44 +00:00
|
|
|
content = {
|
|
|
|
type = "filesystem";
|
|
|
|
mountpoint = "/boot";
|
2024-09-20 04:23:44 +00:00
|
|
|
format = "vfat";
|
2024-02-22 23:25:44 +00:00
|
|
|
};
|
2024-09-20 04:23:44 +00:00
|
|
|
};
|
2023-06-30 05:38:38 +00:00
|
|
|
|
2024-09-20 04:23:44 +00:00
|
|
|
root = {
|
2024-09-22 12:47:17 +00:00
|
|
|
size = "100%";
|
2024-09-20 04:23:44 +00:00
|
|
|
type = "8300";
|
2024-02-22 23:25:44 +00:00
|
|
|
content = {
|
2024-09-20 04:23:44 +00:00
|
|
|
type = "btrfs";
|
|
|
|
extraArgs = [ "-f" ];
|
|
|
|
|
2024-09-22 12:47:17 +00:00
|
|
|
subvolumes = {
|
|
|
|
"/root" = {
|
|
|
|
mountOptions = [ "compress=zstd:10" ];
|
|
|
|
mountpoint = "/";
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
mountOptions = [ "compress=zstd:10" ];
|
|
|
|
mountpoint = "/home";
|
|
|
|
};
|
|
|
|
"/nix" = {
|
|
|
|
mountOptions = [ "compress=zstd:8" "noatime" "noacl" ];
|
|
|
|
mountpoint = "/nix";
|
|
|
|
};
|
|
|
|
};
|
2024-02-22 23:25:44 +00:00
|
|
|
};
|
2024-09-20 04:23:44 +00:00
|
|
|
};
|
|
|
|
};
|
2024-02-22 23:25:44 +00:00
|
|
|
};
|
2023-06-30 05:38:38 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|