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
In the nix module the environment variable NIX_REMOTE is set globally to daemon, which means that when running under dinit which properly inherits environment variables, the Nix daemon process itself will be running with NIX_REMOTE=daemon which causes an infinite loop of the daemon trying to connect to itself. The environment variable needs to be unset, such as below:
export NIX_DAEMON=
or even better
unset NIX_DAEMON
though I haven't tested the second one yet.
To reproduce make a container with dinit and nix.enable = true, nix.daemon = true then run the following commandS
nix-build '<nixpkgs>' -A hello
The text was updated successfully, but these errors were encountered:
In the nix module the environment variable
NIX_REMOTE
is set globally todaemon
, which means that when running under dinit which properly inherits environment variables, the Nix daemon process itself will be running withNIX_REMOTE=daemon
which causes an infinite loop of the daemon trying to connect to itself. The environment variable needs to be unset, such as below:or even better
though I haven't tested the second one yet.
To reproduce make a container with dinit and
nix.enable = true
,nix.daemon = true
then run the following commandSThe text was updated successfully, but these errors were encountered: