nixsearch

homebrew.onActivation.extraEnv

darwin/option · master · bb0b90db

Description

Extra environment variables to set when nix-darwin invokes brew bundle [install] during system checks and activation.

Useful for setting Homebrew's HOMEBREW_NO_* variables (e.g., HOMEBREW_NO_ENV_HINTS, HOMEBREW_NO_ANALYTICS, HOMEBREW_NO_UPDATE_REPORT_NEW) that aren't inherited from the user's shell environment because activation runs under sudo.

Each entry is prepended to the brew bundle invocation in the form KEY=VALUE, alongside HOMEBREW_NO_AUTO_UPDATE=1 when applicable.

Type

attribute set of string

Default

{ }

Example

{
HOMEBREW_NO_ANALYTICS = "1";
HOMEBREW_NO_ENV_HINTS = "1";
}

Declared