Fixing Home Manager configuration after MacOS update
Table of Contents
After almost every MacOS update, I cannot access the tools I’ve installed using home manager. The reason for that is that the /etc/zsh
file gets rewritten during the update, and loses the following bit which is basically bootstrapping the home manager daemon.
# Nix
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
# End Nix
Make sure to re-add it to the end of the file and restart your browser to keep enjoying the tools you have installed.