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`.
wip/yesman
Cole Helbling 3 years ago
parent 370a401ee0
commit 85f5d9a6ed
No known key found for this signature in database
GPG Key ID: B37E0F2371016A4C
  1. 2
      pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh

@ -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.

Loading…
Cancel
Save