Skip to content

Commit 352db26

Browse files
Apply suggestions from code review
1 parent a54ecc5 commit 352db26

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

source/guides/troubleshooting.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,13 @@ This may mean you are trying to import a too large file or directory into the [N
5151

5252
Try to reduce the size of the directory to import, or run [garbage collection](https://nix.dev/manual/nix/stable/command-ref/nix-collect-garbage).
5353

54-
## Darwin update breaks Nix installation
54+
## macOS update breaks Nix installation
5555

56-
This is a known [issue](https://github.com/NixOS/nix/issues/3616). Add the following code snippet to the end of the configuration file `/etc/zshrc` and restart the shell:
56+
This is a [known issue](https://github.com/NixOS/nix/issues/3616).
57+
The [Nix installer](https://nix.dev/manual/nix/latest/installation/installing-binary) modifies `/etc/zshrc`.
58+
When macOS is updated, it will typically overwrite `/etc/zshrc` again.
59+
60+
As a workaround, add the following code snippet to the end of `/etc/zshrc` and restart the shell:
5761

5862
```bash
5963
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then

0 commit comments

Comments
 (0)