don't use non-nixos patches on darwin

This commit is contained in:
Cyryl Płotnicki 2022-03-10 12:41:38 +00:00
parent 3d6dd759c4
commit e8edef6d38

View file

@ -37,7 +37,7 @@
[ -s "/home/cyryl/.jabba/jabba.sh" ] && source "/home/cyryl/.jabba/jabba.sh" [ -s "/home/cyryl/.jabba/jabba.sh" ] && source "/home/cyryl/.jabba/jabba.sh"
tmux source-file ~/.config/tmux/tmux.conf tmux source-file ~/.config/tmux/tmux.conf
local nixos_version=`which nixos-version` 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 source /home/cyryl/.nix-profile/etc/profile.d/nix.sh
export NIX_PATH="$HOME/.nix-defexpr/channels:$NIX_PATH" export NIX_PATH="$HOME/.nix-defexpr/channels:$NIX_PATH"
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"