feat: Replace disk configuration

This commit is contained in:
uttarayan21
2025-01-05 20:25:46 +05:30
parent 1153534369
commit 3e70fa7efb
5 changed files with 75 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
{lib, ...}: {
{...}: {
disko.devices = {
disk = {
one = {
@@ -35,14 +35,6 @@
content = {
type = "gpt";
partitions = {
# esp = {
# size = "1G";
# type = "EF00";
# content = {
# type = "mdraid";
# name = "boot";
# };
# };
primary = {
size = "100%";
content = {
@@ -54,24 +46,12 @@
};
};
};
# mdadm = {
# esp = {
# type = "mdadm";
# level = 1;
# metadata = "1.0";
# content = {
# type = "filesystem";
# format = "vfat";
# mountpoint = "/boot";
# };
# };
# };
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
root = {
size = "128G";
size = "64G";
lvm_type = "mirror";
content = {
type = "filesystem";
@@ -82,8 +62,17 @@
];
};
};
nix = {
size = "256G";
lvm_type = "raid0";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/nix";
};
};
home = {
size = "512G";
size = "256G";
lvm_type = "raid0";
content = {
type = "filesystem";
@@ -91,6 +80,15 @@
mountpoint = "/home";
};
};
media = {
size = "100%";
lvm_type = "raid0";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/media";
};
};
};
};
};