DavHau / nix-portable

Nix - Static, Permissionless, Installation-free, Pre-configured
MIT License
788 stars 29 forks source link

`error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': No such file or directory` #45

Open will-ca opened 1 year ago

will-ca commented 1 year ago
$ NP_DEBUG=2 ./nix-portable nix-shell -p hello
…
error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': No such file or directory
(use '--show-trace' to show detailed location information)
+ echo 'Fatal error: nix is unable to build packages'
Fatal error: nix is unable to build packages
+ exit 1

This is on Manjaro, with a system-wide installation of Nix from the distro repositories.

The socket filepath in question does exist in the system root, unrelated to nix-portable:

$ file /nix/var/nix/daemon-socket/socket
/nix/var/nix/daemon-socket/socket: socket

Happens with nix build of latest master, and also with nix-portable-009 release from January 2022.