mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-11 23:50:05 +01:00
This should make the code cleaner, more robust and errors should be clearer. we also changed the configuration format a bit.
29 lines
527 B
Nix
29 lines
527 B
Nix
{
|
|
disk = {
|
|
vdb = {
|
|
type = "disk";
|
|
device = "/dev/vdb";
|
|
content = {
|
|
type = "table";
|
|
format = "gpt";
|
|
partitions = [
|
|
{
|
|
name = "root";
|
|
type = "partition";
|
|
start = "0%";
|
|
end = "100%";
|
|
content = {
|
|
type = "btrfs";
|
|
mountpoint = "/";
|
|
subvolumes = [
|
|
"/home"
|
|
"/test"
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|