nixos-install: fix flake command
This commit is contained in:
parent
2c07196584
commit
c534a8434f
@ -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…
x
Reference in New Issue
Block a user