I've installed Nix into an Ubuntu WSL installation. I now want to uninstall it.
The manual states to simply "rm -rf /nix
".
Nix adds itself to $PATH and the manual makes mention of a Nix daemon.
Surely there are other parts of my system that Nix has added itself to.
For one, I can see an entry in ~/.profile
which is sourcing ~/.nix-profile/etc/profile.d/nix.sh
Is there anything else that needs to be done?
NOTE: This answer is about uninstalling Nix from a Linux or Linux-like system in 2018. Since then, Nix has started to support systemd unit installations and since Catalina, macOS installations have become more complex too. This answer is not official documentation.
The "curl | sh
" installer for Nix on Linux does not install the Nix daemon, so the only things to delete are /nix
, the line in ~/.profile
and ~/.nix-profile
.