tests: refactor to not use args and to use gpt type

This commit is contained in:
lassulus authored and mergify[bot] committed 2023-07-19 19:07:40 +00:00
1 parent c77e66cea1
commit 04452cfd2b
19 files changed
+221 -335

No files matched your search

+15 -25
View File
@@ -1,48 +1,38 @@
{ disks ? [ "/dev/vdb" "/dev/vdc" ], ... }: {
{
disko.devices = {
disk = {
disk0 = {
device = builtins.elemAt disks 0;
device = "/dev/vda";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "nix";
part-type = "primary";
start = "0%";
end = "100%";
bootable = true;
type = "gpt";
partitions = {
nix = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/a";
};
}
];
};
};
};
};
disk1 = {
device = builtins.elemAt disks 1;
device = "/dev/vdb";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "root";
part-type = "primary";
start = "0%";
end = "100%";
bootable = true;
type = "gpt";
partitions = {
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/b";
};
}
];
};
};
};
};
};