Skip to content

Commit

Permalink
Merge pull request #1178 from isabelroses/fix/checks/homebrew
Browse files Browse the repository at this point in the history
fix: allow users to disable the homebrew check
  • Loading branch information
Enzime authored Nov 19, 2024
2 parents c60b5c9 + fece297 commit 61cee20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/system/checks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61cee20

Please sign in to comment.