use lib.optionalString

This commit is contained in:
Marijan Petričević
2022-01-26 10:46:46 +01:00
parent 75de3397fd
commit 44830dc048
+1 -1
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