reimplement disko using the nixos type system

This should make the code cleaner, more robust and errors should be
clearer. we also changed the configuration format a bit.
This commit is contained in:
lassulus committed 2022-09-02 11:14:58 +02:00
1 parent adf901d581
commit dcb0c42857
11 files changed
+1545 -534

No files matched your search

+23 -20
View File
@@ -1,25 +1,28 @@
{
type = "devices";
content = {
disk = {
vdb = {
type = "table";
format = "gpt";
partitions = [
{
type = "partition";
part-type = "primary";
start = "0%";
end = "100%";
content = {
type = "btrfs";
mountpoint = "/";
subvolumes = [
"/home"
"/test"
];
};
}
];
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"
];
};
}
];
};
};
};
}