As someone said, the wiki [1] has some interesting options. From the options I used nix-user-chroot [2] with great success, and while the tool is unmaintained it should still work. It uses Linux's user namespaces instead of intercepting syscalls, and this makes the performance pretty much identical to native.
If you want more control like PRoot offers, I recommend bubblewrap instead [2].
Another option undocumented is to just grab a recent nix binary somewhere and run. It will automatically create the Nix store inside `$HOME/.local/share/nix` (if I am not mistaken) and use user namespaces to mount to it. However the last time I tried this didn't work well for a few things (e.g.: Home-Manager), so in general I still think nix-user-chroot is a better choice.
[1]: https://wiki.nixos.org/wiki/Nix_Installation_Guide, linking to the official one
[2]: https://github.com/containers/bubblewrap
[3]: https://wiki.nixos.org/wiki/Nix_Installation_Guide#nix-user-...
Reminds me a bit the archlinux.fr vs wiki.archlinux.org fr wiki situation from 10 years ago.
[1] https://wiki.nixos.org/wiki/FAQ#Why_is_there_a_new_wiki?_Wha...?
---
Why is there a new wiki? What is with nixos.wiki?
The old wiki at nixos.wiki has several problems:
Many components (mediawiki, php, icu) are severely outdated.
MediaWiki 1.29 (EOL 2018), now 1.35 (EOL 2023-12)
PHP 7.3.33 (EOL 2021-12)
ICU 64.2
Cloudflare DDOS protection makes wiki edits fail sometimes.
There is no WYSIWYG editor.
The wiki infrastructure, which was supposed to be made public after launch, never ended-up being made public Many components (mediawiki, php, icu) are severely outdated.
The wiki infrastructure, which was supposed to be made public after launch, never ended-up being made public
I suspect both of these are a bigger deal to the Nix community than perhaps to the average group.