summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/system/checks.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/checks.nix b/modules/system/checks.nix
index f3f1e6d..796e7e4 100644
--- a/modules/system/checks.nix
+++ b/modules/system/checks.nix
@@ -297,7 +297,7 @@ let
'';
homebrewInstalled = ''
- if [[ ! -f ${escapeShellArg config.homebrew.brewPrefix}/brew ]]; then
+ if [[ ! -f ${escapeShellArg config.homebrew.brewPrefix}/brew && -z "''${INSTALLING_HOMEBREW:-}" ]]; then
echo "error: Using the homebrew module requires homebrew installed, aborting activation" >&2
echo "Homebrew doesn't seem to be installed. Please install homebrew separately." >&2
echo "You can install homebrew using the following command:" >&2