You can simply use Nginx on a server as a reverse proxy that will keep the files
I wrote a guide here Solene'% : How to make a local NixOS cache server
You could also use peerix to exchange story entry between machines on your local network, but it’s unmaintained, and sometimes doesn’t work well Solene'% : Local peer to peer binary cache with NixOS and Peerix