From d1f907285540971097c05d6bc06bcb9ca83043c5 Mon Sep 17 00:00:00 2001 From: shokinn Date: Tue, 12 Mar 2024 19:41:58 +0100 Subject: [PATCH] add fix for nix --- dotfiles/zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 9fc1941..b872afd 100644 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -200,6 +200,11 @@ export PATH="${brew_path}:${PATH}" # Include /opt/homebrew/opt/gnu-getopt/bin to PATH [[ -d "/opt/homebrew/opt/gnu-getopt/bin" ]] && export PATH="/opt/homebrew/opt/gnu-getopt/bin:${PATH}" + +# Fix nix inbetween systemupdates +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 {%@@ endif @@%} # Functions (or more complex aliases)