homebrew.enable
Whether to enable nix-darwin to manage installing/updating/upgrading Homebrew taps, formulae,
casks, Mac App Store apps, Visual Studio Code extensions, Go packages, and Cargo
crates using Homebrew Bundle.
Note that enabling this option does not install Homebrew, see the Homebrew website for installation instructions.
Use the homebrew.brews, homebrew.casks,
homebrew.masApps, homebrew.vscode,
homebrew.goPackages, and homebrew.cargoPackages options to list
the Homebrew formulae, casks, Mac App Store apps, Visual Studio Code extensions,
Go packages, and Cargo crates you'd like to install. Use the
homebrew.taps option, to make additional formula repositories available to
Homebrew. This module uses those options (along with the
homebrew.caskArgs options) to generate a Brewfile that
nix-darwin passes to the brew bundle command during
system activation.
The default configuration of this module prevents Homebrew Bundle from auto-updating Homebrew
and all formulae, as well as upgrading anything that's already installed, so that repeated
invocations of darwin-rebuild switch (without any change to the
configuration) are idempotent. You can modify this behavior using the options under
homebrew.onActivation.
This module also provides a few options for modifying how Homebrew commands behave when you manually invoke them, under homebrew.global.
- Type
boolean- Default
false- Example
true- Declared
- <nix-darwin/modules/homebrew.nix>