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

+13 -23
View File
@@ -1,47 +1,37 @@
{ disks ? [ "/dev/vdb" ], ... }: {
{
disko.devices = {
disk = {
vdb = {
device = builtins.elemAt disks 0;
device = "/dev/vdb";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1MiB";
end = "100MiB";
bootable = true;
type = "gpt";
partitions = {
ESP = {
size = "100M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "100MiB";
};
root = {
end = "-1G";
part-type = "primary";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
{
name = "swap";
start = "-1G";
end = "100%";
part-type = "primary";
};
swap = {
size = "100%";
content = {
type = "swap";
randomEncryption = true;
resumeDevice = true; # resume from hiberation from this device
};
}
];
};
};
};
};
};