diff options
| author | isabel <isabel@isabelroses.com> | 2024-11-17 14:20:32 +0000 |
|---|---|---|
| committer | isabel <isabel@isabelroses.com> | 2024-11-19 10:11:23 +0000 |
| commit | fece297d640dcbf9aa9f1829caa5f50d47996f2c (patch) | |
| tree | 4b378bf61fd9f57bfdb9f3bc368be080246e54b3 | |
| parent | 34588d57cfc41c6953c54c93b6b685cab3b548ee (diff) | |
fix: allow users to disable the homebrew check
| -rw-r--r-- | modules/system/checks.nix | 2 |
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 "[1;31merror: Using the homebrew module requires homebrew installed, aborting activation[0m" >&2 echo "Homebrew doesn't seem to be installed. Please install homebrew separately." >&2 echo "You can install homebrew using the following command:" >&2 |
