mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 13:33:28 +01:00
tests: refactor to not use args and to use gpt type
This commit is contained in:
1 parent
c77e66cea1
commit
04452cfd2b
19 files changed
+221
-335
No files matched your search
@@ -1,26 +1,21 @@
|
||||
{ disks ? [ "/dev/vdb" "/dev/vdc" ], ... }: {
|
||||
{
|
||||
disko.devices = {
|
||||
disk = {
|
||||
disk0 = {
|
||||
device = builtins.elemAt disks 0;
|
||||
device = "/dev/disk/by-id/ata-disk0";
|
||||
type = "disk";
|
||||
content = {
|
||||
type = "table";
|
||||
format = "gpt";
|
||||
partitions = [
|
||||
{
|
||||
name = "nix";
|
||||
part-type = "primary";
|
||||
start = "0%";
|
||||
end = "-10MiB";
|
||||
bootable = true;
|
||||
type = "gpt";
|
||||
partitions = {
|
||||
nix = {
|
||||
end = "-10M";
|
||||
content = {
|
||||
type = "filesystem";
|
||||
format = "ext4";
|
||||
mountpoint = "/";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user