Source nix_daemon to avoid macOS breakages

This commit is contained in:
Giulio De Pasquale 2023-08-14 14:08:11 +02:00
parent a680860b94
commit 78683f3cdf

View File

@ -14,6 +14,11 @@
enableAutosuggestions = true;
dotDir = ".config/zsh";
initExtra = ''
# avoid macOS updates to destroy nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
any-nix-shell zsh --info-right | source /dev/stdin
source ${pkgs.nix-index}/etc/profile.d/command-not-found.sh
'';