Mount a NixOS system closure's filesystem somewhere else

Creating the media for installing NixOS to a new machine is a bit tedious and not too easy to automate because of dependencies on hardware.
Mounting/unlocking etc. however is very tedious and purely software/data dependent; is there an existing way to take a system closure and automatically unlock and mount its rootfs to a certain directory?