Skip to content

Commit

Permalink
root first, then rest
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Jun 12, 2024
1 parent 37e5b82 commit 53def2d
Showing 1 changed file with 25 additions and 24 deletions.
49 changes: 25 additions & 24 deletions disk-config.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
disko.devices = {
disk = {
one = {
nvme0n1 = {
type = "disk";
device = "/dev/nvme0n1";
content = {
Expand All @@ -15,6 +15,7 @@
ESP = {
size = "500M";
type = "EF00";
priority = 2;
content = {
type = "mdraid";
name = "boot";
Expand All @@ -24,20 +25,20 @@
size = "32G";
content = {
type = "mdraid";
name = "plainSwap";
name = "swap";
};
};
mdadm = {
ROOT = {
size = "100%";
content = {
type = "mdraid";
name = "raid1";
name = "root";
};
};
};
};
};
two = {
nvme1n1 = {
type = "disk";
device = "/dev/nvme1n1";
content = {
Expand All @@ -59,21 +60,36 @@
size = "32G";
content = {
type = "mdraid";
name = "plainSwap";
name = "swap";
};
};
mdadm = {
ROOT = {
size = "100%";
content = {
type = "mdraid";
name = "raid1";
name = "root";
};
};
};
};
};
};
mdadm = {
root = {
type = "mdadm";
level = 1;
content = {
type = "gpt";
partitions.primary = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
boot = {
type = "mdadm";
level = 1;
Expand All @@ -84,28 +100,13 @@
mountpoint = "/boot";
};
};
plainSwap = {
swap = {
type = "mdadm";
level = 1;
content = {
type = "swap";
};
};
raid1 = {
type = "mdadm";
level = 1;
content = {
type = "gpt";
partitions.primary = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
}

0 comments on commit 53def2d

Please sign in to comment.