mirror of https://github.com/bjeanes/dotfiles.git
Add brew back to path while I slowly migrate things
parent
8dabb3cee4
commit
a97fed5d86
15
flake.nix
15
flake.nix
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue