Installation directly results in seg faults for any nix command

I imagine that’s it. Can you confirm by unsetting it and see if Nix runs?

I’m not sure why it’s set on your system, but New install: Nix wants glibc 2.38, Debian 12 has 2.36 - #5 by TLATER is a recent example of a similar problem ~solved by unsetting this env.