From 9f7f23abdb161578316d94f45528fbf47982f4d9 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 30 Sep 2022 12:55:28 +0200 Subject: add nixos tests for disko.config, extend/fix existing tests --- example/gpt-bios-compat.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/gpt-bios-compat.nix') diff --git a/example/gpt-bios-compat.nix b/example/gpt-bios-compat.nix index 9abe691..72886a0 100644 --- a/example/gpt-bios-compat.nix +++ b/example/gpt-bios-compat.nix @@ -1,8 +1,8 @@ # Example to create a bios compatible gpt partition -{ +{ disks ? [ "/dev/vdb" ] }: { disk = { vdb = { - device = "/dev/vdb"; + device = builtins.elemAt disks 0; type = "disk"; content = { type = "table"; -- cgit v1.2.3