I followed the directions (I think!) but nix is still nix, not lix #491
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#491
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Platform
Additional information
I uninstall Nix following the directions at https://nix.dev/manual/nix/2.18/installation/uninstall for a multi user install. I rebooted. Then I reinstalled Nix. So, I had a fresh install. Then I installed Lix following the directions here: https://lix.systems/install/
but running
nix --version
shows I'm still running nix, not lix. Starting a fresh terminal instance doesn't help, rebooting doesn't help.My nix config is available to read here: https://github.com/bonds/dotfiles/tree/main/.config/nix
The macos machine I'm trying to get lix working on is called 'accismus' and its running macos 14.6.1
Help! :) I'm happy to do more troubleshooting on my own if you can point me in the right direction, I suspect I'm doing something wrong here rather than it being a proper bug, but I don't know how to make further progress tracking down what's wrong...
Output
Output
Please get the output of
which nix
and post it here.also, doing something like:
may be enlightening. if it's busted, look at options instead of config where you can pull out where that stuff is defined.
Hmm. I wonder if my fish plugins might be messing something up.
Yah, I wonder if
lilyball/nix-env.fish
is doing something wrong with my PATH. Lemme see...and
Victory! Hmm, I wonder what
niv-env
had been doing...So, looks like it added
/nix/var/nix/profiles/default/bin
to my PATH before/run/current-system/sw/bin
and so I wasn't getting the nix I wanted.Thanks for the help!
The curious thing here is that the default profile contained nix 2.24 when you presumably wiped /nix? And our installer should have put a lix there. Anyway it may be worth uninstalling the nix 2.24 from that profile and putting either a lix or nothing in its place, in case nix-darwin breaks and you have to recover.
Hmm. I'm not sure I understand, but let see what I can figure out. Maybe you mean I could have uninstalled nix-darwin and just used the lix installer? https://git.lix.systems/lix-project/lix-installer
Anyhow, lemme poke around:
So... @jade you are worried that because I installed nix-darwin before installing lix I have nixcpp sitting there, and ideally I should uninstall nix-darwin and just use the lix installer to avoid that?
I'm just unsure what combination of the uninstall directions plus the lix installer caused that to be cppnix. you can nix-env --remove it and use nix-env to install lix in its place, no need to use the lix installer as the installation is otherwise obviously working fine.
maybe it was put there by the nix-darwin install process somehow? i have no idea.
it's not a big problem, you can ultimately just ignore it if you don't feel like doing anything about it.
regarding why the nix-env command has confusing output, you need to use the --profile flag to specify that profile you're finding cppnix in; by default it looks at your user profile which doesn't have anything in it (which is normal).