use lib.optionalString

This commit is contained in:
Marijan Petričević 2022-01-25 13:43:56 +01:00
parent 75de3397fd
commit 44830dc048

View file

@ -141,7 +141,7 @@ rec {
--set startScripts "''${vmStartScripts[*]}" \
--set testScript "$out/test-script" \
--set vlans '${toString vlans}' \
${if interactive then "--add-flags --interactive" else ""}
${lib.optionalString (interactive) "--add-flags --interactive"}
'');
# Make a full-blown test