From d61fd1522b0477b376418edb9dc1ea336af29f89 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 10 Nov 2022 09:46:55 +0100 Subject: add regression test for #52 --- example/multi-device-no-deps.nix | 50 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 example/multi-device-no-deps.nix (limited to 'example') diff --git a/example/multi-device-no-deps.nix b/example/multi-device-no-deps.nix new file mode 100644 index 0000000..2ad5f47 --- /dev/null +++ b/example/multi-device-no-deps.nix @@ -0,0 +1,50 @@ +{ disks ? [ "/dev/vdb" "/dev/vdc" ], ... }: { + disk = { + disk0 = { + device = builtins.elemAt disks 0; + type = "disk"; + content = { + type = "table"; + format = "gpt"; + partitions = [ + { + name = "nix"; + type = "partition"; + part-type = "primary"; + start = "0%"; + end = "100%"; + bootable = true; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/a"; + }; + } + ]; + }; + }; + disk1 = { + device = builtins.elemAt disks 1; + type = "disk"; + content = { + type = "table"; + format = "gpt"; + partitions = [ + { + name = "root"; + type = "partition"; + part-type = "primary"; + start = "0%"; + end = "100%"; + bootable = true; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/b"; + }; + } + ]; + }; + }; + }; +} -- cgit v1.2.3