From e8edef6d38b3236749a3dd9921482b24a8dc5602 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Thu, 10 Mar 2022 12:41:38 +0000 Subject: [PATCH] don't use non-nixos patches on darwin --- nixos/home-manager/programs/zsh.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/home-manager/programs/zsh.nix b/nixos/home-manager/programs/zsh.nix index adbdcc94..77592909 100644 --- a/nixos/home-manager/programs/zsh.nix +++ b/nixos/home-manager/programs/zsh.nix @@ -37,7 +37,7 @@ [ -s "/home/cyryl/.jabba/jabba.sh" ] && source "/home/cyryl/.jabba/jabba.sh" tmux source-file ~/.config/tmux/tmux.conf local nixos_version=`which nixos-version` - if [[ ! -x "$nixos_version" ]]; then + if [[ ! -x "$nixos_version" && ! `uname` == "Darwin" ]]; then source /home/cyryl/.nix-profile/etc/profile.d/nix.sh export NIX_PATH="$HOME/.nix-defexpr/channels:$NIX_PATH" export NVM_DIR="$HOME/.nvm"