From 737a21794cd05ab53dcca4b5b68c5c45ddcb3c41 Mon Sep 17 00:00:00 2001 From: lassulus Date: Thu, 20 Jul 2023 21:33:13 +0200 Subject: [PATCH] lib makeDiskoTest: set networking.hostId to non null value --- lib/tests.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tests.nix b/lib/tests.nix index ba40265..959e389 100644 --- a/lib/tests.nix +++ b/lib/tests.nix @@ -172,7 +172,9 @@ let connect-timeout = 1; }; - networking.hostId = lib.mkIf (testConfigInstall ? networking.hostId) testConfigInstall.networking.hostId; + networking.hostId = lib.mkIf ( + (testConfigInstall ? networking.hostId) && (testConfigInstall.networking.hostId != null) + ) testConfigInstall.networking.hostId; virtualisation.emptyDiskImages = builtins.genList (_: 4096) num-disks;