nixos-install: fix flake command

This commit is contained in:
Jörg Thalheim 2021-04-21 20:16:29 +02:00
parent 2c07196584
commit c534a8434f
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -125,7 +125,7 @@ fi
# Resolve the flake.
if [[ -n $flake ]]; then
flake=$(nix "${flakeFlags[@]}" flake info --json "${extraBuildFlags[@]}" "${lockFlags[@]}" -- "$flake" | jq -r .url)
flake=$(nix "${flakeFlags[@]}" flake metadata --json "${extraBuildFlags[@]}" "${lockFlags[@]}" -- "$flake" | jq -r .url)
fi
if [[ ! -e $NIXOS_CONFIG && -z $system && -z $flake ]]; then