From df95c478514d08b3763fccf85afc662cbd6adf3d Mon Sep 17 00:00:00 2001 From: Spotlight Date: Thu, 4 May 2023 15:18:45 -0500 Subject: [PATCH] Source nix daemon if not already --- zshrc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index 4252ff5..2b1470e 100644 --- a/zshrc +++ b/zshrc @@ -103,9 +103,8 @@ if [ -f $HOME/.keysrc ]; then fi # Allow nix if possible -if [ -d /nix ]; then - # https://github.com/NixOS/nix/issues/2033 - export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH} +if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then + . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' fi # Rust