Skip to content

make a more relevant example for nix-store --export#10711

Merged
tomberek merged 1 commit intoNixOS:masterfrom
fricklerhandwerk:nix-store-export-example
May 19, 2024
Merged

make a more relevant example for nix-store --export#10711
tomberek merged 1 commit intoNixOS:masterfrom
fricklerhandwerk:nix-store-export-example

Conversation

@fricklerhandwerk
Copy link
Contributor

given nix-copy-closure exists, it doesn't make much sense to do

nix-store --export $paths | nix-store --import --store ssh://foo@bar

since that dumps everything rather than granularly transferring store
objects as needed.

therefore, pick an example where dumping the entire closure into a file
actually makes a difference, such as when deploying to airgapped systems.

Motivation

reworking the use case documentation around nix-copy-closure, as discussed with @eflanagan0

Context

related: #10708

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

given `nix-copy-closure` exists, it doesn't make much sense to do

    nix-store --export $paths | nix-store --import --store ssh://foo@bar

since that dumps everything rather than granularly transferring store
objects as needed.

therefore, pick an example where dumping the entire closure into a file
actually makes a difference, such as when deploying to airgapped systems.
@fricklerhandwerk fricklerhandwerk force-pushed the nix-store-export-example branch from 9490020 to d50ce2d Compare May 15, 2024 20:37
@tomberek tomberek merged commit 7cb3c80 into NixOS:master May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants