Skip to content

Commit

Permalink
Change noAutoUpdate option to autoUpdate in brew-bundle module
Browse files Browse the repository at this point in the history
  • Loading branch information
malob committed Dec 15, 2020
1 parent df06dc4 commit 8cfcb91
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions modules/programs/brew-bundle.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ let
);

brew-bundle-command =
"HOMEBREW_NO_AUTO_UPDATE=" +
(if cfg.noAutoUpdate then "1" else "0") +
" brew bundle --file='${brewfile}' --no-lock" +
(if cfg.autoUpdate then "" else "HOMEBREW_NO_AUTO_UPDATE=1 ") +
"brew bundle --file='${brewfile}' --no-lock" +
(if cfg.cleanup == "uninstall" || cfg.cleanup == "zap" then " --cleanup" else "") +
(if cfg.cleanup == "zap" then " --zap" else "");

Expand All @@ -47,13 +46,12 @@ in
installation instructions: https://brew.sh
'';

noAutoUpdate = mkOption {
autoUpdate = mkOption {
type = types.bool;
default = true;
example = false;
default = false;
description = ''
Sets the <literal>HOMEBREW_NO_AUTO_UPDATE</literal> environment variable when running the
<command>brew bundle</command> command. The default is <literal>true</literal> so that
When enabled, sets the <literal>HOMEBREW_NO_AUTO_UPDATE</literal> environment variable
during `nix-darwin` activation. The default is <literal>false</literal> so that
repeated invocations of <command>darwin-rebuild switch</command> are idempotent.
'';
};
Expand Down

0 comments on commit 8cfcb91

Please sign in to comment.