docs: Remove Nix profile content from correct directory

At least on Ubuntu 22.04, the Nix installer creates
`/etc/profile.d/nix.sh`, not `/etc/profile/nix.sh`.
This commit is contained in:
Victor Engmark 2023-05-15 10:13:46 +12:00
parent ccf512f4b8
commit 3cc9b8630b

View file

@ -34,7 +34,7 @@ If you are on Linux with systemd:
Remove files created by Nix: Remove files created by Nix:
```console ```console
sudo rm -rf /nix /etc/nix /etc/profile/nix.sh ~root/.nix-profile ~root/.nix-defexpr ~root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels sudo rm -rf /nix /etc/nix /etc/profile.d/nix.sh ~root/.nix-profile ~root/.nix-defexpr ~root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels
``` ```
Remove build users and their group: Remove build users and their group: