lib makeDiskoTest: set networking.hostId to non null value

This commit is contained in:
lassulus 2023-07-20 21:33:13 +02:00
parent 1ddcff717c
commit 737a21794c

View file

@ -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;