From 7ef6136b2258dda3bceab7a8c0b55a9207562a5b Mon Sep 17 00:00:00 2001 From: Ethan Turkeltaub Date: Wed, 10 Jun 2026 22:00:52 -0400 Subject: [PATCH] Workaround for Homebrew activation issues --- modules/profiles/system/darwin/brew.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/profiles/system/darwin/brew.nix b/modules/profiles/system/darwin/brew.nix index a10089f..72e71d2 100644 --- a/modules/profiles/system/darwin/brew.nix +++ b/modules/profiles/system/darwin/brew.nix @@ -4,7 +4,13 @@ homebrew = { enable = true; - onActivation.cleanup = lib.mkDefault "zap"; + onActivation = { + cleanup = lib.mkDefault "zap"; + + # TODO: Remove when this issue is fixed + # https://github.com/nix-darwin/nix-darwin/pull/1789 + extraFlags = [ "--force-cleanup" ]; + }; brews = [ "pinentry-mac" ];