diff --git a/nixos-generate b/nixos-generate index fb91910..49e240a 100755 --- a/nixos-generate +++ b/nixos-generate @@ -113,5 +113,6 @@ if [[ -z $run ]]; then # show the first file find "$out" -type f -print -quit else - "$out/bin/run-nixos-vm" + runner=$(find "$out"/bin -type l -print -quit) + exec "$runner" fi