Last active
November 1, 2021 15:16
-
-
Save iacore/30f45b1c24764ced6baec6b61b2a7e44 to your computer and use it in GitHub Desktop.
How to Uninstall Nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uninstalling nix: | |
1. Delete the systemd service and socket units | |
sudo systemctl stop nix-daemon.socket | |
sudo systemctl stop nix-daemon.service | |
sudo systemctl disable nix-daemon.socket | |
sudo systemctl disable nix-daemon.service | |
sudo systemctl daemon-reload | |
2. Restore /etc/profile.d/nix.sh.backup-before-nix back to /etc/profile.d/nix.sh | |
sudo mv /etc/profile.d/nix.sh.backup-before-nix /etc/profile.d/nix.sh | |
(after this one, you may need to re-open any terminals that were | |
opened while it existed.) | |
3. Delete the files Nix added to your system: | |
sudo rm -rf /etc/nix /nix /root/.nix-profile /root/.nix-defexpr /root/.nix-channels /home/user/.nix-profile /home/user/.nix-defexpr /home/user/.nix-channels | |
and that is it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment