Skip to content

Commit

Permalink
Revert "Update disk-config.nix"
Browse files Browse the repository at this point in the history
This reverts commit 6979be2.
  • Loading branch information
orzklv committed Jun 18, 2024
1 parent 6979be2 commit 9de9a35
Showing 1 changed file with 24 additions and 34 deletions.
58 changes: 24 additions & 34 deletions disk-config.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
# /dev/nvme0n1
# /dev/nvme1n1
#
# Disk
# |- BOOT
# |- ESP
# | |- mdraid
# |- SWAP
# | |- mdraid
# |- ROOT
# |- mdraid
{
disko.devices = {
disk = {
one = {
nvme0n1 = {
type = "disk";
device = "/dev/nvme0n1";
content = {
Expand All @@ -21,10 +10,12 @@
BOOT = {
size = "1M";
type = "EF02";
priority = 1;
};
ESP = {
size = "500M";
type = "EF00";
priority = 2;
content = {
type = "mdraid";
name = "boot";
Expand All @@ -37,26 +28,25 @@
name = "swap";
};
};
mdadm = {
ROOT = {
size = "100%";
content = {
type = "mdraid";
name = "raid1";
name = "root";
};
};
};
};
};
two = {
nvme1n1 = {
type = "disk";
device = "/dev/nvme1n1";
content = {
type = "gpt";
partitions = {
boot = {
BOOT = {
size = "1M";
type = "EF02";
priority = 1; # Needs to be first partition
};
ESP = {
size = "500M";
Expand All @@ -73,18 +63,33 @@
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 @@ -102,21 +107,6 @@
type = "swap";
};
};
raid1 = {
type = "mdadm";
level = 1;
content = {
type = "gpt";
partitions.primary = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
}

0 comments on commit 9de9a35

Please sign in to comment.