NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
11.78k stars 1.45k forks source link

Pre-installed Nix removal instructions miss user's fish #11038

Open suntropez opened 1 month ago

suntropez commented 1 month ago

The installer makes a suggestion of removing pre-existing Nix things.

https://github.com/NixOS/nix/blob/master/scripts/install-multi-user.sh#L139

In my case, I had $HOME/.config/fish/conf.d/nix.fish from the single user install. The new installation added /etc/fish/conf.d/nix.fish. Since Fish let's the former override the latter, /etc/fish/conf.d/nix.fish was not being sourced. Maybe, and this is just a suggestion, the installer could remind or suggest removal of shell specific files. It took me a bit of investigation to realize what was going on so this might happen to more people, hence the suggestion here.

To be clear, although $HOME/.config/fish/conf.d/nix.fish existed, the content was meant for the single user install which had been removed.

Platform

Additional information

Going from single-user to multi-user install.

Output

N/A

Priorities

Add :+1: to issues you find important.

fricklerhandwerk commented 1 month ago

Triaged in Nix team meeting:

nixos-discourse commented 1 month ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-07-10-nix-team-meeting-minutes-160/49101/1