Closed deemp closed 11 months ago
Currently, I use nix copy to copy paths from a cached chroot store from and into root store.
nix copy
Copying takes a lot of time at the start of a job.
daemon 1
/nix/store
daemon 2
file://
Solved by https://github.com/deemp/cache-nix-too/tree/use-nix-quick-install-action as it becomes possible to restore and save store paths directly without copying from an intermediate store.
Currently, I use
nix copy
to copy paths from a cached chroot store from and into root store.Copying takes a lot of time at the start of a job.
Possible solution
daemon 1
with low priority copies paths that aren't yet in/nix/store
.daemon 2
with high priority substitutes paths on demand.daemon 2
needs to substitute and lock the store,daemon 1
stops for a while, then continues.Advantages
Disadvantages
Alternatives
file://
(docs)