feat: Added lvm volume for sata ssds

This commit is contained in:
uttarayan21
2025-02-01 04:03:35 +05:30
parent be6ee1f72f
commit e1b6272aea
5 changed files with 101 additions and 15 deletions

54
nixos/ryu/disk-config.nix Normal file
View File

@@ -0,0 +1,54 @@
{...}: {
disko.devices = {
disk = {
a = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
primary = {
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
b = {
type = "disk";
device = "/dev/sdb";
content = {
type = "gpt";
partitions = {
primary = {
size = "100%";
content = {
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
};
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
media = {
size = "100%";
lvm_type = "raid0";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/media";
};
};
};
};
};
};
}