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.
/nixvolume on macOS. Also, I’ve only seen the.Trashesfolder on USB and NAS volumes. Are you certain you’re seeing this on your macOS volume? – Allan Aug 30 '20 at 18:03sudo rm -rf ~/nixandsudo rm -rf /nix/? – Matthew Barclay Aug 30 '20 at 19:58sudo chflags noschg /nixandsudo chflags nouchg /nix(you will be asked to enter your login password at the first use ofsudo). 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