From f5ce1951f57ee505b4666f11e886aec9e4eaf241 Mon Sep 17 00:00:00 2001 From: larstvei Date: Sun, 19 Feb 2023 20:09:59 +0100 Subject: [PATCH] Improve homebrew setup Uninstall brew packages when they are removed from this config. --- modules/mac.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/mac.nix b/modules/mac.nix index 5593a10..4b0666e 100644 --- a/modules/mac.nix +++ b/modules/mac.nix @@ -65,7 +65,11 @@ homebrew = { enable = true; - onActivation.upgrade = true; + onActivation = { + upgrade = true; + cleanup = "uninstall"; + }; + taps = [ "homebrew/cask" ]; casks = [ "amethyst" "dropbox"