If you run immich with docker, you can choose any drive/folder for your photos by mounting it at the right location inside the docker container.
However, I would strongly suggest that you also use some other kind of backup beside rest. I personally like restic combined with Backblaze B2, but there are many other good solutions for this.