diff --git a/example/hybrid.nix b/example/hybrid.nix index 061fa1e..ff11661 100644 --- a/example/hybrid.nix +++ b/example/hybrid.nix @@ -1,9 +1,9 @@ -{ disk, ... }: +{ disks ? [ "/dev/vda" ], ... }: { disk = { main = { type = "disk"; - device = disk; + device = builtins.elemAt disks 0; content = { type = "table"; format = "gpt"; diff --git a/tests/hybrid.nix b/tests/hybrid.nix new file mode 100644 index 0000000..077308f --- /dev/null +++ b/tests/hybrid.nix @@ -0,0 +1,9 @@ +{ pkgs ? (import { }) +, makeDiskoTest ? (pkgs.callPackage ./lib.nix { }).makeDiskoTest +}: +makeDiskoTest { + disko-config = ../example/hybrid.nix; + extraTestScript = '' + machine.succeed("mountpoint /"); + ''; +}