diff --git a/modules/homebrew.nix b/modules/homebrew.nix index c78d41f..ff04da3 100644 --- a/modules/homebrew.nix +++ b/modules/homebrew.nix @@ -802,6 +802,7 @@ in if [ -f "${cfg.brewPrefix}/brew" ]; then PATH="${cfg.brewPrefix}:${lib.makeBinPath [ pkgs.mas ]}:$PATH" \ sudo \ + --preserve-env=PATH \ --user=${escapeShellArg cfg.user} \ --set-home \ ${cfg.onActivation.brewBundleCmd}