Try a different disk layout with LVM

This is based on a discussion here:
https://github.com/nix-community/disko/issues/889

Had to do it since the last one didn't even build and was based on a
cobbling of LLM (Claude) assistance, reading example files, and reading
the disko module definition file.
This commit is contained in:
Eli Ribble 2025-09-08 16:02:30 +00:00
parent 5a4be39988
commit b6f43b8795

View file

@ -7,23 +7,60 @@
device = "/dev/sdb";
type = "disk";
content = {
type = "table";
format = "mbr";
type = "gpt";
partitions = {
MBR = {
size = "1M";
type = "EF02"; # for grub MBR
};
boot = {
size = "500M";
type = "EF02"; # for grub MBR
attributes = [ 0 ]; # partition attribute
type = "EF00"; # for grub MBR
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
};
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
root = {
size = "50G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [
"defaults"
];
};
};
var = {
size = "100%FREE";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/var";
mountOptions = [
"defaults"
];
};
};
};
};