Partly yes, by adding the followings into the deadalus shell script:
- export XDG_DATA_HOME=<wherever you want it to store> and or set it globally (not recommended)
- add -p XDG_DATA_HOME to the nix chroot.
As it will create the Daedalus/mainnet directory under the XDG_DATA_HOME.
A working example:
export XDG_DATA_HOME=/home/user/mainnet_db
exec ./nix/store/4xbn31l2fr95vp9z7g7ayxzy19ywcpnd-nix-user-chroot-2c52b5f/bin/nix-user-chroot \
-n ./nix -c -m /home:/home -m /etc:/host-etc -m etc:/etc -p DISPLAY \
-p HOME -p XAUTHORITY \
-p XDG_DATA_HOME \
-- /nix/var/nix/profiles/profile/bin/enter-phase2 daedalus