anchor.diff:          Note that you need to be signed into the Mac App Store for <command>mas</command> to
           successfully install and upgrade applications, and that unfortunately apps removed from this
           option will not be uninstalled automatically even if
  -        <option>homebrew.cleanup</option> is set to <literal>"uninstall"</literal>
  +        <option>homebrew.onActivation.cleanup</option> is set to <literal>"uninstall"</literal>
           or <literal>"zap"</literal> (this is currently a limitation of Homebrew Bundle).
   
           For more information on <command>mas</command> see:
  
positive.code:   cfg = config.homebrew;
  
    brewfileFile = pkgs.writeText "Brewfile" cfg.brewfile;
  
    brew-bundle-command = concatStringsSep " " (
      optional (!cfg.autoUpdate) "HOMEBREW_NO_AUTO_UPDATE=1"
      ++ [ "brew bundle --file='${brewfileFile}' --no-lock" ]
      ++ optional (cfg.cleanup == "uninstall" || cfg.cleanup == "zap") "--cleanup"
      ++ optional (cfg.cleanup == "zap") "--zap"
    );
  
    # Brewfile creation helper functions -------------------------------------------------------------
  
  
negative.code:       # Homebrew Bundle
        echo >&2 "Homebrew bundle..."
        if [ -f "${cfg.brewPrefix}/brew" ]; then
          PATH="${cfg.brewPrefix}":$PATH ${cfg.onActivation.brewBundleCmd}
        else
          echo -e "\e[1;31merror: Homebrew is not installed, skipping...\e[0m" >&2
        fi
  