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
I need to set an environment variable (npm auth token) required to fetch dependencies of my project. Is there a way for me to add to buildVarshere to accomplish this?
The text was updated successfully, but these errors were encountered:
This is tricky, because simply placing them in the environment via buildVars or similar results in Nix placing those credentials in /nix/store with world-readable permissions.
What might work is an option to set impureEnvVars for the fetch steps. That'd cause Nix to simply forward those environment variables. Downside is that most Nix installs are likely using nix-daemon to run builds, so the environment variables would have to be set on nix-daemon.
I need to set an environment variable (npm auth token) required to fetch dependencies of my project. Is there a way for me to add to
buildVars
here to accomplish this?The text was updated successfully, but these errors were encountered: