8.nix-darwin/modules/system
Malo Bourgon 8c29e146dd
modules/homebrew: replace brewPrefix with prefix
Closes #596

`homebrew.brewPrefix` defaulted to the bin directory (`/opt/homebrew/bin`),
not the actual Homebrew prefix (`/opt/homebrew`). This misled users into
writing `${config.homebrew.brewPrefix}/bin`, producing the broken path
`/opt/homebrew/bin/bin`.

Replace it with `homebrew.prefix`, which has correct semantics matching
`brew --prefix`. The old `brewPrefix` option is removed using
`mkRemovedOptionModule`, which catches both users who set the option and
users who read it in custom code. A warning also fires if the new `prefix`
value ends with `/bin`, catching users who copy the old value verbatim.
2026-02-10 09:26:54 -08:00
..
defaults feat(screencapture): add save-selections 2026-01-06 15:41:11 +01:00
activation-scripts.nix activation-scripts: move createRun after checks 2025-05-16 16:34:31 +01:00
applications.nix applications: change pathsToLink to a list 2025-11-14 09:54:32 +10:00
base.nix activation-scripts: get rid of user activation 2025-05-16 16:34:31 +01:00
checks.nix modules/homebrew: replace brewPrefix with prefix 2026-02-10 09:26:54 -08:00
default.nix fold -> foldr 2025-11-26 19:41:19 +10:00
defaults-write.nix Escape XML generated by toPlist 2025-07-01 18:50:11 +02:00
etc.nix etc: merge etcChecks into checks 2025-05-16 16:34:31 +01:00
keyboard.nix (feature) Add swapLeftCtrlAndFn 2024-08-05 13:00:32 +02:00
launchd.nix launchd: move userLaunchd to system activation 2025-05-16 16:29:17 +01:00
nvram.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
patches.nix system: replace for f in $(ls ...) with for f in .../* 2024-11-07 17:20:00 +11:00
primary-user.nix Avoid confusing users with future deprecations 2025-06-02 09:55:31 -04:00
shells.nix users: allow shell to be managed by macOS 2024-10-27 21:52:41 +11:00
startup.nix treewide: remove lib.mdDoc 2024-04-19 04:05:50 +02:00
version.nix Docs: Fix references to NixOS 2025-03-06 16:24:46 +01:00