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
Copy file name to clipboardExpand all lines: source/guides/troubleshooting.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -51,9 +51,13 @@ This may mean you are trying to import a too large file or directory into the [N
51
51
52
52
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).
53
53
54
-
## Darwin update breaks Nix installation
54
+
## macOS update breaks Nix installation
55
55
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:
57
61
58
62
```bash
59
63
if [ -e'/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ];then
0 commit comments