diff options
| author | tv <tv@krebsco.de> | 2026-11-14 02:07:52 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-14 02:07:52 +0000 |
| commit | 4742c6de2c532e6b1be145a5544d815fc95199b4 (patch) | |
| tree | 51f4ae386ce4f3ce37d72bc7e2584b3d2c5c8c40 /pkgs/populate/README.md | |
| parent | 06f3ddfd3a32e9038ea36c6e196d71adf1753391 (diff) | |
populate: copy flakes only if the target lacks some of their store paths
nix copy connects anew, without the shared connection, also when the
target has all of a flake's store paths already, and then copies
nothing. The shared connection tells which store paths the target
lacks, and nix copy only copies those, if any.
Diffstat (limited to 'pkgs/populate/README.md')
| -rw-r--r-- | pkgs/populate/README.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/populate/README.md b/pkgs/populate/README.md index 63ec6bd..fd7de6d 100644 --- a/pkgs/populate/README.md +++ b/pkgs/populate/README.md @@ -253,8 +253,8 @@ The flake source type delivers a flake to the target. The flake gets archived locally using `nix flake archive`, which includes only files tracked by Git, so use a `file` source for work trees with untracked files. The flake and its inputs get copied into the target's Nix store using `nix copy`, -and the target path becomes a symlink to the flake's store path, registered -as garbage collector root. For flakes in a subdirectory, e.g. +if it lacks any of them, and the target path becomes a symlink to the +flake's store path, registered as garbage collector root. For flakes in a subdirectory, e.g. `git+file:/src/mono?dir=sub`, the symlink points at that subdirectory of the store path. The inputs get garbage collector roots in `.populate/flake-inputs/<name>`, which turns the sentinel file into a |
