You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduce your stance
(I think the installer is part of this repo)
MacOS reserves the right to update /etc/bash.bashrc and /etc/zshrc. The problem is that these are destructive updates and causes the related files to revert the changes done by the nix installation.
Until mac supports /etc/zshrc.d/, we should probably have the installer handle the case that a /etc/*rc file was overwritten by mac.
Describe the issue
Explained above.
We should probably check if /etc/{bash.bash,zsh}rc contain nix, if they don't then use that as the new $file.backup-before-nix file, if they do contain references to nix, then skip attempting to modify it.
For the MacOS 12.3 case, the following would have been needed (copied from here):
# 1. Remove backup files
sudo rm /etc/{bashrc,zshrc}.backup-before-nix
# 2. Run installation script again
sh <(curl -L https://nixos.org/nix/install)
# Doing 2. before 1. makes the installation script fail.
The text was updated successfully, but these errors were encountered:
Introduce your stance
(I think the installer is part of this repo)
MacOS reserves the right to update
/etc/bash.bashrc
and /etc/zshrc
. The problem is that these are destructive updates and causes the related files to revert the changes done by the nix installation.Until mac supports /etc/zshrc.d/, we should probably have the installer handle the case that a /etc/*rc file was overwritten by mac.
Describe the issue
Explained above.
We should probably check if
/etc/{bash.bash,zsh}rc
containnix
, if they don't then use that as the new$file.backup-before-nix
file, if they do contain references to nix, then skip attempting to modify it.For the MacOS 12.3 case, the following would have been needed (copied from here):
The text was updated successfully, but these errors were encountered: