mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-18 15:34:13 +01:00
20 lines
498 B
Nix
20 lines
498 B
Nix
let
|
|
envExtra = ''
|
|
export PATH="/opt/homebrew/bin:/usr/local/bin:$PATH"
|
|
'';
|
|
in {
|
|
# Homebrew's default install location:
|
|
# /opt/homebrew for Apple Silicon
|
|
# /usr/local for macOS Intel
|
|
# The prefix /opt/homebrew was chosen to allow installations
|
|
# in /opt/homebrew for Apple Silicon and /usr/local for Rosetta 2 to coexist and use bottles.
|
|
programs.bash = {
|
|
enable = true;
|
|
bashrcExtra = envExtra;
|
|
};
|
|
programs.zsh = {
|
|
enable = true;
|
|
inherit envExtra;
|
|
};
|
|
}
|