diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh index 222211df278..4f1b234b0e0 100644 --- a/nixos/modules/installer/tools/nixos-install.sh +++ b/nixos/modules/installer/tools/nixos-install.sh @@ -73,7 +73,7 @@ if [[ ${NIXOS_CONFIG:0:1} != / ]]; then exit 1 fi -if [ ! -e "$NIXOS_CONFIG" ] && [ -z "$closure" ]; then +if [[ ! -e $NIXOS_CONFIG && -z $system ]]; then echo "configuration file $NIXOS_CONFIG doesn't exist" exit 1 fi