Skip to content

Commit

Permalink
Merge pull request NixOS#10712 from fricklerhandwerk/reword-nix-store…
Browse files Browse the repository at this point in the history
…-import-docs

reword documentation on `nix-store --import`
  • Loading branch information
Ericson2314 authored May 15, 2024
2 parents 45c83cd + 6907eaa commit bbe780b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions doc/manual/src/command-ref/nix-store/import.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@

# Description

The operation `--import` reads a serialisation of a set of store paths
produced by `nix-store --export` from standard input and adds those
store paths to the Nix store. Paths that already exist in the Nix store
are ignored. If a path refers to another path that doesn’t exist in the
Nix store, the import fails.
The operation `--import` reads a serialisation of a set of [store objects](@docroot@/glossary.md#gloss-store-object) produced by [`nix-store --export`](./export.md) from standard input, and adds those store objects to the specified [Nix store](@docroot@/store/index.md).
Paths that already exist in the target Nix store are ignored.
If a path [refers](@docroot@/glossary.md#gloss-reference) to another path that doesn’t exist in the target Nix store, the import fails.

> **Note**
>
> For efficient transfer of closures to remote machines over SSH, use [`nix-copy-closure`](@docroot@/command-ref/nix-copy-closure.md).
{{#include ./opt-common.md}}

Expand Down

0 comments on commit bbe780b

Please sign in to comment.