Nix local overlay store

How to implement the nix experimental feature local overlay store in docker container, where i mount nix store having required derivations and don’t have to download the derivations from cache.nixos.org.
What should i set as merged, upper and work directory for this overlay setup to work?

Ref: Experimental Local Overlay Store - Nix Reference Manual

1 Like