Closed lylek closed 7 months ago
The /nix/var/nix/daemon-socket/socket
socket is a multi-user install thing. I'm curious if that's how you have it installed or if you've done something more interesting.
I installed nix quite a while ago, but I certainly didn't do anything interesting. Since I have very little experience with nix, I just followed the instructions at https://nixos.org/download.html#nix-install-macos. It looks to me like that's a multi-user install. Is there a way I can check whether it's a multi-user install?
error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': Connection refused
This sounds vaguely familiar. Think I remember running into similar issues ~5 years ago when calling the nix installer on mac with sudo. It would cause havoc for normal use or something. IINM that went away when I removed nix alltogether and installed it normally, letting the installer script use sudo only when needed.
I had
nix
already installed. So I cloned the repo, cd'd into it, and ran./try-reflex
:I'm running macOS 13.4 on aarch64, nix 2.12.0.
I ran
./try-reflex
again and it saidSo perhaps the first error was a race condition, whereby it was trying to access the socket before it was created?
And then it finished with this error: