document homebrew/nix-homebrew interaction

fixes: #5
This commit is contained in:
Drewry Pope
2025-07-31 13:26:40 -06:00
committed by Zhaofeng Li
parent 69c1aa2f13
commit a8788a90eb
+5 -2
View File
@@ -43,7 +43,8 @@ If you haven't installed Homebrew before, use the following configuration:
# (...)
modules = [
nix-homebrew.darwinModules.nix-homebrew
{
({config, ...}: {
homebrew.taps = builtins.attrNames config.nix-homebrew.taps;
nix-homebrew = {
# Install Homebrew under the default prefix
enable = true;
@@ -65,7 +66,7 @@ If you haven't installed Homebrew before, use the following configuration:
# With mutableTaps disabled, taps can no longer be added imperatively with `brew tap`.
mutableTaps = false;
};
}
})
];
};
};
@@ -77,6 +78,8 @@ Run `arch -x86_64 brew` to install X86-64 packages through Rosetta 2.
With `nix-homebrew.mutableTaps = false`, taps can be removed by deleting the corresponding attribute in `nix-homebrew.taps` and activating the new configuration.
Setting `homebrew.taps` to equal `nix-homebrew.taps` attribute names reduces configuration mismatches.
### B. Existing Homebrew Installation
If you've already installed Homebrew with the official script, you can let `nix-homebrew` automatically migrate it: