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
Describe the bug
Performed macOS upgrade from 12.${PREVIOUS} to 12.2.1, just after I installed nix.
On reboot, the /etc/zshrc settings had vanished. I added the nix bin to the PATH and ran nix doctor and it found no issues. I tried reinstalling nix and it crapped out.
Steps To Reproduce
Install nix 2.6.1 on macOS
Perform system upgrade
Login, and try to run nix
Fails, due to $PATH additions having been lost
Manually prepend nix bin to PATH
run nix doctor -- no output
Try to reinstall
Ponder meaning of oh no
Expected behavior
I expect the initial nix install to have made some addition to the /etc/{z,ba}shrc files somehow (and that's the question here: how?) that survives a system upgrade which appears to have clobbered the changes.
Or, perhaps, nix doctor to fix things.
nix-env --version output
nix-env (Nix) 2.6.1
Additional context
Add any other context about the problem here.
---- oh no! --------------------------------------------------------------------
I back up shell profile/rc scripts before I add Nix to them.
I need to back up /etc/bashrc to /etc/bashrc.backup-before-nix,
but the latter already exists.
sloth% ls -lrt /etc/{z,ba}shrc*
-rw-r--r-- 1 root wheel 9335 7 Feb 07:22 /etc/zshrc_Apple_Terminal
-r--r--r-- 1 root wheel 3094 7 Feb 07:22 /etc/zshrc
-rw-r--r-- 1 root wheel 9309 7 Feb 07:22 /etc/bashrc_Apple_Terminal
-r--r--r-- 1 root wheel 265 18 Feb 19:33 /etc/bashrc.backup-before-nix
-r--r--r-- 1 root wheel 426 18 Feb 19:33 /etc/bashrc
-r--r--r-- 1 root wheel 3094 18 Feb 19:33 /etc/zshrc.backup-before-nix
permezel
changed the title
macOS upgrade after fresh initial nix install: bash and zsh additions vanish
macOS upgrade after fresh initial nix install: zshrc additions vanish
Feb 18, 2022
Describe the bug
Performed macOS upgrade from
12.${PREVIOUS}
to12.2.1
, just after I installed nix.On reboot, the
/etc/zshrc
settings had vanished. I added the nix bin to the PATH and rannix doctor
and it found no issues. I tried reinstalling nix and it crapped out.Steps To Reproduce
nix
nix doctor
-- no outputoh no
Expected behavior
I expect the initial nix install to have made some addition to the /etc/{z,ba}shrc files somehow (and that's the question here: how?) that survives a system upgrade which appears to have clobbered the changes.
Or, perhaps,
nix doctor
to fix things.nix-env --version
outputnix-env (Nix) 2.6.1
Additional context
Add any other context about the problem here.
The
bash
additions are still there:I have fixed the issue, but it required re-installing.
The text was updated successfully, but these errors were encountered: