How to remove the nix volume on macOS 10.15? [closed]

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.


Solution 1:

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