diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix index 885783b1d0b..3d89e5484d1 100644 --- a/nixos/lib/testing-python.nix +++ b/nixos/lib/testing-python.nix @@ -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