nixos-rebuild: nix flake info -> nix flake metadata

As of
66fa1c7375,
the `nix flake info` and `nix flake list-inputs` commands were merged into
`nix flake metadata`.
This commit is contained in:
Cole Helbling 2021-03-18 17:26:51 -07:00
parent 370a401ee0
commit 85f5d9a6ed
No known key found for this signature in database
GPG key ID: B37E0F2371016A4C

View file

@ -295,7 +295,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
# Find configuration.nix and open editor instead of building.