Closed deemp closed 2 months ago
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
Should be resolved now. Here's the sql script.
We skip all existing /nix/store
paths and all stuff in /nix/var
except /nix/var/nix/db/db.sqlite
(link).
We use single-user Nix installation provided by the nix-quick-install-action.
Scenario:
/nix/var/nix/db
.restore-prefixes-all-matches
restores a store A, then store B./nix/var/nix/db
./nix/var/nix/db
from B.However, ideally,
restore-prefixes-all-matches
should really merge stores and databases, not just overwrite databases.It's currently unclear how to merge stores.
Some links that may be helpful
Reproduce a similar scenario
To get two stores, run
Then, the databases are in
I can copy paths from one store to another via
cp
.Questions
restoreCache
/nix/var/nix/db/db.sqlite