forked from mirrors/nixpkgs
Merge pull request #120508 from Mic92/nixos-install
nixos-install: fix flake command
This commit is contained in:
commit
6e90599166
|
@ -125,7 +125,7 @@ fi
|
||||||
|
|
||||||
# Resolve the flake.
|
# Resolve the flake.
|
||||||
if [[ -n $flake ]]; then
|
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
|
fi
|
||||||
|
|
||||||
if [[ ! -e $NIXOS_CONFIG && -z $system && -z $flake ]]; then
|
if [[ ! -e $NIXOS_CONFIG && -z $system && -z $flake ]]; then
|
||||||
|
|
Loading…
Reference in a new issue