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
When trying to run nix-channel using the static binary in a virgin, non-nix environment, it fails trying to find nix-env in /nix/store. store = /home/user/my-store in nix.conf is ignored.
Steps To Reproduce
Steps to reproduce the behavior:
Start a virgin, non-nix environment e.g alpine or debian in a VM or docker
Move the nix binary into it and create symlinks to it called nix-channel and nix-env
run nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
run nix-channel --update
Expected behavior
The nixpkgs channel should be downloaded.
Screenshots
$ nix-channel --update
unpacking channels...
error: executing '/nix/store/qibdl14c7jcxna48v5h5g51qm1iw2iw9-nix-static-x86_64-unknown-linux-musl-2.17.0/bin/nix-env': No such file or directory
error: program '/nix/store/qibdl14c7jcxna48v5h5g51qm1iw2iw9-nix-static-x86_64-unknown-linux-musl-2.17.0/bin/nix-env' failed with exit code 1
Describe the bug
When trying to run
nix-channel
using the static binary in a virgin, non-nix environment, it fails trying to findnix-env
in/nix/store
.store = /home/user/my-store
innix.conf
is ignored.Steps To Reproduce
Steps to reproduce the behavior:
PATH
nix-channel
andnix-env
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
nix-channel --update
Expected behavior
The
nixpkgs
channel should be downloaded.Screenshots
Additional context
Basically was trying to do what @matthewbauer did https://matthewbauer.us/blog/static-nix.html , but with the official
nixStatic
. Related PR #56281 which was superseded by #70024Notify maintainers
@eelco @lovesegfault @Artturin
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.--> this doesn't work as channels don't work
The text was updated successfully, but these errors were encountered: