zsh: add homebrew path on macos

This commit is contained in:
Giulio De Pasquale 2023-11-29 21:20:20 +01:00
parent 989152c7bc
commit 660307a862

View File

@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, lib, stdenv, ... }:
{ {
home.packages = with pkgs; [ any-nix-shell ]; home.packages = with pkgs; [ any-nix-shell ];
@ -21,6 +21,8 @@
any-nix-shell zsh --info-right | source /dev/stdin any-nix-shell zsh --info-right | source /dev/stdin
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
'' + lib.optional (stdenv.isDarwin) ''
export PATH=$PATH:/opt/homebrew/bin
''; '';
}; };
} }