diff --git a/modules/nix-darwin/brew/default.nix b/modules/nix-darwin/brew/default.nix index 05c4a68..45acd7e 100644 --- a/modules/nix-darwin/brew/default.nix +++ b/modules/nix-darwin/brew/default.nix @@ -20,7 +20,7 @@ in if ! xcode-select --version 2>/dev/null; then $DRY_RUN_CMD xcode-select --install fi - if ! /usr/local/bin/brew --version 2>/dev/null; then + if ! ${config.homebrew.brewPrefix}/brew --version 2>/dev/null; then $DRY_RUN_CMD /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" fi '';