everywhere-config/disk-config.nix

87 lines
1.8 KiB
Nix
Raw Normal View History

2025-05-13 11:09:08 +00:00
{
disko.devices = {
2025-05-14 14:51:54 +00:00
disk = {
one = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
boot = {
size = "500M";
2025-05-14 14:51:54 +00:00
type = "EF00";
content = {
type = "mdraid";
name = "boot";
2025-05-14 14:51:54 +00:00
};
};
primary = {
2025-05-14 14:51:54 +00:00
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
2025-05-14 14:51:54 +00:00
};
2025-05-13 11:09:08 +00:00
};
};
2025-05-14 14:51:54 +00:00
};
};
two = {
type = "disk";
device = "/dev/nvme1n1";
content = {
type = "gpt";
partitions = {
boot = {
size = "500M";
type = "EF00";
content = {
type = "mdraid";
name = "boot";
};
};
primary = {
2025-05-14 14:51:54 +00:00
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
2025-05-14 14:51:54 +00:00
};
2025-05-13 11:09:08 +00:00
};
};
};
};
};
mdadm = {
boot = {
type = "mdadm";
level = 1;
metadata = "1.0";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
2025-05-14 14:51:54 +00:00
};
};
};
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
root = {
size = "100%";
lvm_type = "mirror";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
};
2025-05-13 11:09:08 +00:00
};
};
};
};
};
2025-05-15 08:15:06 +00:00
}