Describe the bug
After installing nix the nix daemon won't run since it's being blocked by sandboxing from opening files in the nix store. This is happening on macOS Monterey installed on and booted from an external SSD.
Steps To Reproduce
- (Install and boot MacOS on an external SSD.)
- Follow the installation instructions for Nix on MacOS:
sh <(curl -L https://nixos.org/nix/install)
- Complete the installation steps. (Notice that the Nix store volume was created on the external SSD.)
- Check if nix is running:
ps -ef | grep nix. It's not. (Occasionally a wait4path is running if darwin-store daemon hasn't started correctly.)
- Check nix-daemon log:
tail /private/var/log/nix-daemon.log
dyld[1397]: Library not loaded: /nix/store/95n0y1033piss1slf99is61a3zc0yv0p-libsodium-1.0.18/lib/libsodium.23.dylib
Referenced from: /nix/store/hyfj5imsd0c4amlcjpf8l6w4q2draaj3-nix-2.7.0/bin/nix-daemon
Reason: tried: '/nix/store/95n0y1033piss1slf99is61a3zc0yv0p-libsodium-1.0.18/lib/libsodium.23.dylib' (file system sandbox blocked open()), '/usr/local/lib/libsodium.23.dylib' (no such file), '/usr/lib/libsodium.23.dylib' (no such file)
(Repeated over and over again.)
So libsodium can't be loaded due to sandbox rules.
Expected behavior
nix-deamon and darwin-store running
nix-env --version output
Additional context
Note that I'm running MacOS on a FileVault encrypted external SSD (with the internal disk locked). I don't know for sure that this is related to the problem, but as it's probably not the most usual setup it might be the reason why I encounter this issue while others can install Nix on MacOS without problem.
Describe the bug
After installing nix the nix daemon won't run since it's being blocked by sandboxing from opening files in the nix store. This is happening on macOS Monterey installed on and booted from an external SSD.
Steps To Reproduce
sh <(curl -L https://nixos.org/nix/install)ps -ef | grep nix. It's not. (Occasionally a wait4path is running if darwin-store daemon hasn't started correctly.)tail /private/var/log/nix-daemon.log(Repeated over and over again.)
So libsodium can't be loaded due to sandbox rules.
Expected behavior
nix-deamon and darwin-store running
nix-env --versionoutputAdditional context
Note that I'm running MacOS on a FileVault encrypted external SSD (with the internal disk locked). I don't know for sure that this is related to the problem, but as it's probably not the most usual setup it might be the reason why I encounter this issue while others can install Nix on MacOS without problem.