From 746b05f91c27d25a928cb161428c1250e7a6622c Mon Sep 17 00:00:00 2001 From: Sam Willcocks Date: Sun, 15 Mar 2026 16:58:39 +0000 Subject: [PATCH] macs: only source brew if exists --- home/macs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/macs.nix b/home/macs.nix index d020d22..6c88047 100644 --- a/home/macs.nix +++ b/home/macs.nix @@ -17,5 +17,5 @@ "~/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh"; }; programs.zsh.sessionVariables.SSH_AUTH_SOCK = "$HOME/Library/Containers/com.maxgoedjen.Secretive.SecretAgent/Data/socket.ssh"; - programs.zsh.initContent = "eval $(/opt/homebrew/bin/brew shellenv)"; + programs.zsh.initContent = "[ -e /opt/homebrew/bin/brew ] && eval $(/opt/homebrew/bin/brew shellenv)"; }