MyNixOS website logo
option

homebrew.onActivation.extraEnv

Extra environment variables to set when nix-darwin invokes brew bundle [install] during system 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.

Declarations
    Type
    attribute set of string
    Default
    { }
    Example
    {
      HOMEBREW_NO_ANALYTICS = "1";
      HOMEBREW_NO_ENV_HINTS = "1";
    }