[clever@amd-nixos:/tmp/mnt]$ mkdir nix/store -pv
mkdir: created directory 'nix'
mkdir: created directory 'nix/store'
[clever@amd-nixos:/tmp/mnt]$ for x in $(nix-store -qR $(realpath /run/current-system/sw/bin/bash)); do nix-store --dump $x | nix-store --restore /tmp/mnt/$x ; done
[clever@amd-nixos:/tmp/mnt]$ ls nix/store/
2bid4ynk163hmypgz7b4aanq2i0d41c3-ncurses-6.0 cg0gxn11n6sadfrw3p7l8rh053gn3f0z-bash-4.4-p5 wxdn46939hsihi92z1f4shkal5nd6p3n-readline-7.0p0
3v5m2gn0kmxrg9xia0nqa491hmplvz2d-bash-4.4-p5 kk71vkqipf30qc165718jmp0s8cggn2y-glibc-2.24
[clever@amd-nixos:/tmp/mnt]$ ls nix/
store