anchor.diff:  {
     # Interface --------------------------------------------------------------------------------------
   
  +  imports = [
  +    (mkRenamedOptionModule [ "homebrew" "autoUpdate" ] [ "homebrew" "onActivation" "autoUpdate" ])
  +    (mkRenamedOptionModule [ "homebrew" "cleanup" ] [ "homebrew" "onActivation" "cleanup" ])
  +  ];
  +
     options.homebrew = {
       enable = mkEnableOption ''
  -      configuring your Brewfile, and installing/updating the formulas therein via
  +      configuring your Brewfile, and installing/updating the formulae therein via
         the <command>brew bundle</command> command, using <command>nix-darwin</command>.
   
         Note that enabling this option does not install Homebrew. See the Homebrew
         <link xlink:href="https://brew.sh">website</link> for installation instructions
       '';
  -
  -    autoUpdate = mkOption {
  -      type = types.bool;
  -      default = false;
  -      description = ''
  -        Whether to enable Homebrew to auto-update during <command>nix-darwin</command>
  -        activation. The default is <literal>false</literal> so that repeated invocations of
  -        <command>darwin-rebuild switch</command> are idempotent.
  -      '';
  -    };
   
       brewPrefix = mkOption {
         type = types.str;
  
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: # Created by: https://github.com/malob
  { config, lib, options, pkgs, ... }:
  
  with lib;
  
  