From 4742c6de2c532e6b1be145a5544d815fc95199b4 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 14 Nov 2026 02:07:52 +0000 Subject: 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. --- pkgs/populate/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/populate/README.md') 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/`, which turns the sentinel file into a -- cgit v1.3.1