diff --git a/pkgs/nix-tools/darwin-rebuild.sh b/pkgs/nix-tools/darwin-rebuild.sh index ba9c2e8b..7824913d 100644 --- a/pkgs/nix-tools/darwin-rebuild.sh +++ b/pkgs/nix-tools/darwin-rebuild.sh @@ -168,16 +168,6 @@ if [[ -n "$flake" ]]; then flakeAttr=darwinConfigurations.${flakeAttr} fi -if [ -n "$flake" ]; then - if nix "${flakeFlags[@]}" flake metadata --version &>/dev/null; then - cmd=metadata - else - cmd=info - fi - - flake=$(nix "${flakeFlags[@]}" flake "$cmd" --json "${extraMetadataFlags[@]}" "${extraLockFlags[@]}" -- "$flake" | jq -r .url) -fi - if [ "$action" != build ]; then if [ -n "$flake" ]; then extraBuildFlags+=("--no-link")