We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We use single-user Nix installation provided by the nix-quick-install-action.
Scenario:
/nix/var/nix/db
restore-prefixes-all-matches
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
To get two stores, run
nix build --no-link nixpkgs#hello --store store1 nix build --no-link nixpkgs#gawk --store store2
Then, the databases are in
store1/nix/var/nix/db/db.sqlite store2/nix/var/nix/db/db.sqlite
I can copy paths from one store to another via cp.
cp
restoreCache
/nix/var/nix/db/db.sqlite
The text was updated successfully, but these errors were encountered:
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/merge-two-nix-stores/41256/1
Sorry, something went wrong.
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).
/nix/store
/nix/var
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: