diff options
| author | Malo Bourgon <mbourgon@gmail.com> | 2020-12-14 16:06:41 -0800 |
|---|---|---|
| committer | Malo Bourgon <mbourgon@gmail.com> | 2020-12-14 16:06:41 -0800 |
| commit | a38892c6c86dff99b7354d7bbb52e4edf71c4720 (patch) | |
| tree | 646b37ab292d8ec9ec73623fe38f8a6b553b3db1 /modules | |
| parent | 102a09dc16f8443c9f72c01407434bb0836a75f0 (diff) | |
Rename brew-bunble.cleanupType to cleanup
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/programs/brew-bundle.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/programs/brew-bundle.nix b/modules/programs/brew-bundle.nix index c5939d5..0d4380d 100644 --- a/modules/programs/brew-bundle.nix +++ b/modules/programs/brew-bundle.nix @@ -32,8 +32,8 @@ let "HOMEBREW_NO_AUTO_UPDATE=" + (if cfg.noAutoUpdate then "1" else "0") + " brew bundle --file='${brewfile}' --no-lock" + - (if cfg.cleanupType == "uninstall" || cfg.cleanupType == "zap" then " --cleanup" else "") + - (if cfg.cleanupType == "zap" then " --zap" else ""); + (if cfg.cleanup == "uninstall" || cfg.cleanup == "zap" then " --cleanup" else "") + + (if cfg.cleanup == "zap" then " --zap" else ""); in @@ -58,7 +58,7 @@ in ''; }; - cleanupType = mkOption { + cleanup = mkOption { type = types.enum [ "none" "uninstall" "zap" ]; default = "none"; example = "uninstall"; @@ -146,7 +146,7 @@ in 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>programs.brew-bundle.cleanupType</option> is set to <literal>"uninstall"</literal> + <option>programs.brew-bundle.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: https://github.com/mas-cli/mas |
