6

I tried out nix, but wasn't happy with it. I tried to uninstall it by removing ~/.nix-* and it worked fine, but removing /nix results in the following error.

rm: /nix/.Trashes: Operation not permitted
rm: /nix: Resource busy

How do I remove/unlink this directory? lsof +d /nix gives no output.

  • I don’t know of any /nix volume on macOS. Also, I’ve only seen the .Trashes folder on USB and NAS volumes. Are you certain you’re seeing this on your macOS volume? – Allan Aug 30 '20 at 18:03
  • Have you tried using sudo rm -rf ~/nix and sudo rm -rf /nix/ ? – Matthew Barclay Aug 30 '20 at 19:58
  • Trashes is generally a hidden folder on at least every volume on a Mac – Matthew Barclay Aug 30 '20 at 20:09
  • In terminal, try these two commands: sudo chflags noschg /nix and sudo chflags nouchg /nix (you will be asked to enter your login password at the first use of sudo). Once you have entered those two commands, try deleting it again. If it doesn't work, try the same commands on any folders within the /nix/ folder. – TJ Luoma Jan 08 '21 at 17:53

1 Answers1

7

I think you need to open Disk Utility and remove the "Nix Store" volume from there