diff options
Diffstat (limited to 'users')
| -rw-r--r-- | users/ryan/home.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/users/ryan/home.nix b/users/ryan/home.nix index af8770b..9ff5870 100644 --- a/users/ryan/home.nix +++ b/users/ryan/home.nix | |||
| @@ -95,11 +95,16 @@ | |||
| 95 | 95 | ||
| 96 | programs.zsh = { | 96 | programs.zsh = { |
| 97 | enable = true; | 97 | enable = true; |
| 98 | initContent = '' | 98 | initContent = let |
| 99 | brewPath = if pkgs.stdenv.isDarwin && pkgs.stdenv.isAarch64 then '' | ||
| 100 | eval "$(/opt/homebrew/bin/brew shellenv)" | ||
| 101 | '' else ""; | ||
| 102 | in '' | ||
| 99 | export GPG_TTY="$(tty)" | 103 | export GPG_TTY="$(tty)" |
| 100 | export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" | 104 | export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" |
| 101 | gpgconf --launch gpg-agent | 105 | gpgconf --launch gpg-agent |
| 102 | gpg-connect-agent updatestartuptty /bye > /dev/null | 106 | gpg-connect-agent updatestartuptty /bye > /dev/null |
| 107 | ${brewPath} | ||
| 103 | ''; | 108 | ''; |
| 104 | shellAliases = { | 109 | shellAliases = { |
| 105 | cat = "bat --paging=never"; | 110 | cat = "bat --paging=never"; |
