From 660307a862872d0a9851c9e76840e23ede8d63e0 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Wed, 29 Nov 2023 21:20:20 +0100 Subject: [PATCH] zsh: add homebrew path on macos --- roles/home/zsh.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/home/zsh.nix b/roles/home/zsh.nix index 7d4c529..f884d28 100644 --- a/roles/home/zsh.nix +++ b/roles/home/zsh.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, stdenv, ... }: { home.packages = with pkgs; [ any-nix-shell ]; @@ -21,6 +21,8 @@ any-nix-shell zsh --info-right | source /dev/stdin source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh + '' + lib.optional (stdenv.isDarwin) '' + export PATH=$PATH:/opt/homebrew/bin ''; }; }