From db36c9ca90794fe82e66d4e0fb7754875978de29 Mon Sep 17 00:00:00 2001 From: Viktor Sonesten Date: Mon, 11 Mar 2024 19:17:45 +0100 Subject: [PATCH] nix-copy: document --all --from local binary cache example --- src/nix/copy.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nix/copy.md b/src/nix/copy.md index 199006436..6ab7cdee3 100644 --- a/src/nix/copy.md +++ b/src/nix/copy.md @@ -11,6 +11,12 @@ R""( Note the `file://` - without this, the destination is a chroot store, not a binary cache. +* Copy all store paths from a local binary cache in `/tmp/cache` to the local store: + + ```console + # nix copy --all --from file:///tmp/cache + ``` + * Copy the entire current NixOS system closure to another machine via SSH: