3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #120508 from Mic92/nixos-install

nixos-install: fix flake command
This commit is contained in:
Jörg Thalheim 2021-04-25 07:17:06 +01:00 committed by GitHub
commit 6e90599166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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