summaryrefslogtreecommitdiff
path: root/modules/mac/programs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mac/programs')
-rw-r--r--modules/mac/programs/homebrew/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/modules/mac/programs/homebrew/default.nix b/modules/mac/programs/homebrew/default.nix
index ab9bb6d..cc738c7 100644
--- a/modules/mac/programs/homebrew/default.nix
+++ b/modules/mac/programs/homebrew/default.nix
@@ -6,5 +6,14 @@
./nix-homebrew.nix
];
- homebrew.enable = true;
+ homebrew = {
+ enable = true;
+
+ # https://www.reddit.com/r/NixOS/comments/1f7qvj2/how_do_you_run_brew_update_on_a_nixdarwin_system/lla1fn5/
+ onActivation = {
+ autoUpdate = true;
+ cleanup = "uninstall";
+ upgrade = true;
+ };
+ };
}