Skip to content

Commit

Permalink
Add troubleshooting entry for Nix issue on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
wamirez committed Nov 7, 2024
1 parent 92b5c97 commit a54ecc5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions source/guides/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,13 @@ $ nix-store --load-db < /tmp/db.dump
This may mean you are trying to import a too large file or directory into the [Nix store](https://nix.dev/manual/nix/stable/glossary#gloss-store), or your machine is running out of resources, such as disk space or memory.

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).

## Darwin update breaks Nix installation

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:

```bash
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
```

0 comments on commit a54ecc5

Please sign in to comment.