Isolates Minecraft from the rest of the system (mostly).
I don't make any security guarantees.
Before using the script, set the
LAUNCHER_DIR variable in it.
Use this script as the "wrapper command" in your launcher.
This does isolate X11! It requires Wayland, though.
This script might not work on non-NixOS. Send an email if it doesn' work.