- First create a symbolic link to the linker provided by nix-ld at
/lib64/ld-linux-x86-64.so.2
(assuming you're using x86_64)
I've done some works in https://gitlab.com/citreu/cireguix/-/blob/master/ciregnu/services/nix-ld.scm?ref_type=heads, it's far from perfect so I haven't upstream it.
- Create a profile contains commonly used libraries
Here's an example (the libraries are shamelessly copied from AppImage project)