NixOS / nix

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

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

Open suntropez opened 5 months ago

suntropez commented 5 months 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 4 months ago

Triaged in Nix team meeting:

nixos-discourse commented 4 months 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