From a38892c6c86dff99b7354d7bbb52e4edf71c4720 Mon Sep 17 00:00:00 2001 From: Malo Bourgon Date: Mon, 14 Dec 2020 16:06:41 -0800 Subject: Rename brew-bunble.cleanupType to cleanup --- modules/programs/brew-bundle.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/programs') 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 mas to successfully install and upgrade applications, and that unfortunately apps removed from this option will not be uninstalled automatically even if - is set to "uninstall" + is set to "uninstall" or "zap" (this is currently a limitation of Homebrew Bundle). For more information on mas see: https://github.com/mas-cli/mas -- cgit v1.2.3