Update disk-config

This commit is contained in:
hodasemi 2025-05-15 10:18:40 +02:00
parent 9869100b8e
commit 1c07fd9fb9

View file

@ -1,53 +1,42 @@
{ {
disko.devices = { disko.devices =
let
mirrorContent = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02"; # for grub MBR
};
ESP = {
size = "500M";
type = "EF00";
content = {
type = "mdraid";
name = "boot";
};
};
primary = {
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
in
{
disk = { disk = {
one = { one = {
type = "disk"; type = "disk";
device = "/dev/nvme0n1"; device = "/dev/nvme0n1";
content = { content = mirrorContent;
type = "gpt";
partitions = {
boot = {
size = "500M";
type = "EF00";
content = {
type = "mdraid";
name = "boot";
};
};
primary = {
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
}; };
two = { two = {
type = "disk"; type = "disk";
device = "/dev/nvme1n1"; device = "/dev/nvme1n1";
content = { content = mirrorContent;
type = "gpt";
partitions = {
boot = {
size = "500M";
type = "EF00";
content = {
type = "mdraid";
name = "boot";
};
};
primary = {
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
}; };
}; };
mdadm = { mdadm = {