From 772dd74d1c0df6b5f536baf2ee5cdcc875dae8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 24 Nov 2019 10:33:17 +0000 Subject: [PATCH] Add special non-nixos zsh loader --- nixos/programs/zsh.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/programs/zsh.nix b/nixos/programs/zsh.nix index 2bb5573f..11a2952f 100644 --- a/nixos/programs/zsh.nix +++ b/nixos/programs/zsh.nix @@ -44,6 +44,13 @@ export PATH="$HOME/.cargo/bin:$PATH"; export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"; ''; + envExtra = '' + if [[ -z `nixos-version` ]]; then + source /home/cyryl/.nix-profile/etc/profile.d/nix.sh + export NIX_PATH="$HOME/.nix-defexpr/channels:$NIX_PATH" + echo "non-nixos patches loaded" + fi + ''; sessionVariables = { TERM="xterm-256color"; EDITOR="vim";