Add brew back to path while I slowly migrate things

wip
Bo Jeanes 2024-07-19 09:27:38 +10:00
parent 8dabb3cee4
commit a97fed5d86
No known key found for this signature in database
1 changed files with 14 additions and 1 deletions

View File

@ -339,11 +339,24 @@
linux = { }; linux = { };
# home-manager config specific to Darwin # home-manager config specific to Darwin
darwin = { darwin = let
addBrewPath = ''
# Apple Silicon
[ -d /opt/homebrew/bin ] && export PATH="/opt/homebrew/bin:$PATH"
[ -d /opt/homebrew/sbin ] && export PATH="/opt/homebrew/sbin:$PATH"
# Intel
[ -d /usr/local/bin ] && export PATH="/usr/local/bin:$PATH"
[ -d /usr/local/sbin ] && export PATH="/usr/local/sbin:$PATH"
'';
in {
# Yank/paste in Neovim to/from macOS clipboard by default # Yank/paste in Neovim to/from macOS clipboard by default
programs.nixvim.clipboard.register = "unnamedplus"; programs.nixvim.clipboard.register = "unnamedplus";
programs.git.extraConfig."gpg \"ssh\"".program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"; programs.git.extraConfig."gpg \"ssh\"".program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
programs.bash.initExtra = addBrewPath;
programs.zsh.initExtra = addBrewPath;
}; };
}; };
}; };