60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{
|
|
disko.devices.disk.main = {
|
|
type = "disk";
|
|
device = "/dev/disk/by-id/scsi-36067d367fe184830a89bbe708c7b1066";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
priority = 1;
|
|
name = "ESP";
|
|
start = "1MiB";
|
|
end = "512MiB";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot/efi";
|
|
mountOptions = [
|
|
"noatime"
|
|
"fmask=0077"
|
|
"dmask=0077"
|
|
];
|
|
};
|
|
};
|
|
root = {
|
|
priority = 2;
|
|
name = "root";
|
|
size = "100%";
|
|
content = {
|
|
type = "btrfs";
|
|
extraArgs = [ "-f" ];
|
|
subvolumes = {
|
|
"@root" = {
|
|
mountpoint = "/";
|
|
mountOptions = [
|
|
"noatime"
|
|
"compress=zstd"
|
|
];
|
|
};
|
|
"@nix" = {
|
|
mountpoint = "/nix";
|
|
mountOptions = [
|
|
"noatime"
|
|
"compress=zstd"
|
|
];
|
|
};
|
|
"@persistent" = {
|
|
mountpoint = "/persistent";
|
|
mountOptions = [
|
|
"noatime"
|
|
"compress=zstd"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|