summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisabel <isabel@isabelroses.com>2024-11-17 14:20:32 +0000
committerisabel <isabel@isabelroses.com>2024-11-19 10:11:23 +0000
commitfece297d640dcbf9aa9f1829caa5f50d47996f2c (patch)
tree4b378bf61fd9f57bfdb9f3bc368be080246e54b3
parent34588d57cfc41c6953c54c93b6b685cab3b548ee (diff)
fix: allow users to disable the homebrew check
-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