Skip to content

Commit 28aa0b9

Browse files
committed
agents: document nix-homebrew tap recovery
1 parent 591e873 commit 28aa0b9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

dotfiles/agents/skills/disk-space-cleanup/references/cleanup-patterns.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ Preserve `.runner`, `.labels`, `.docker/config.json`, SSH material, Kubernetes m
3535
- Empty Trash only with explicit approval.
3636
- Close Chrome, Spotify, Gradle daemons, and similar applications before targeted cache cleanup.
3737

38+
## nix-homebrew Tap Recovery
39+
40+
- On macOS, `darwin-rebuild switch` can report that an existing Homebrew tap directory is in the way when legacy `homebrew-cask` or `homebrew-core` checkouts predate nix-homebrew management.
41+
- For a root-owned cask tap, restore user ownership and run `brew untap --force homebrew/cask`.
42+
- Homebrew refuses to untap core. Move the legacy core checkout out of the expected tap path, then rerun the switch so nix-homebrew recreates both managed tap links. Verify the subsequent Homebrew bundle and Darwin activation complete.
43+
3844
## Severe Pressure
3945

4046
When only megabytes remain, run the smallest safe cleanup first. Build tools and SQLite may fail opaquely before reporting `ENOSPC`. Avoid commands that need substantial temporary disk space until a safe margin has been restored.

0 commit comments

Comments
 (0)