Skip to content

Commit

Permalink
Ensure homebrew is on the system path
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Sep 11, 2024
1 parent 4a5ac3f commit e9a513d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion home/fish/config.fish
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ switch (uname)
# set -x DYLD_LIBRARY_PATH {$BUILD_PREFIX}/lib {$DYLD_LIBRARY_PATH}
#
# fix nix path
set -x PATH /etc/profiles/per-user/(whoami)/bin "/Applications/PyCharm CE.app/Contents/MacOS" {$PATH} /opt/homebrew/bin
set -x PATH /etc/profiles/per-user/(whoami)/bin "/Applications/PyCharm CE.app/Contents/MacOS" {$PATH}
case '*'
end

Expand Down
8 changes: 7 additions & 1 deletion system/darwin/common/configuration.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
pkgs,
hostname,
config,
...
}: {
imports = [
Expand Down Expand Up @@ -48,7 +49,12 @@
# https://nixcademy.com/2024/01/15/nix-on-macos/
security.pam.enableSudoTouchIdAuth = true;

programs.fish.enable = true;
programs.fish = {
enable = true;
loginShellInit = ''
eval (${config.homebrew.brewPrefix}/brew shellenv)
'';
};
programs.zsh.enable = true;
programs.gnupg.agent.enable = true;

Expand Down

0 comments on commit e9a513d

Please sign in to comment.