Copy-closure without SSH

Hi everyone. I’m wondering if it is possible to use nix copy-closure without ssh. Specifically, we are deploying a nix-built container to kubernetes, but need to be able to hot-fix the container contents if something goes wrong. My idea was to just copy the project closures onto the kubernetes pod.

The pod does not have ssh access (and we’re not doing that, as you might imagine), but there is shell access via kubectl exec, so in theory I should be able to use that instead of an SSH shell. But I have no idea how to tell nix copy-closure to do this.