Open flokli opened 3 years ago
(in multi-user mode, which is the default now)
Probably doesn't alter the issue any, but adding errata for posterity:
True, cachix configures the installer to multi-user. I assume the problem is also present on MacOS, even though I didn't explicitly check for it.
I marked this as stale due to inactivity. → More info
Describe the bug
When installing Nix on a non-NixOS system (in multi-user mode, which is the default now), the nix-daemon doesn't have the
nix*
binaries in$PATH
.This is somewhat unintuitive/inconsistent, as
nix.package
gets added to$PATH
on NixOS, and it just works there, but fails for example when using Nix on non-NixOS (like in a GitHub Action)Steps To Reproduce
nix.conf
nix copy
as per https://www.tweag.io/blog/2019-11-21-untrusted-ci/)Expected behavior
nix-daemon
has its tooling in $PATH.nix-env --version
output 2.3.12, as perAdditional context
Originally reported as https://github.com/cachix/install-nix-action/issues/82, but it's not limited to the
install-nix-action
itself, and the case in everything using the installer on non-NixOS.