1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

add description + example for nix flake archive

Update src/nix/flake-archive.md

Update src/nix/flake-archive.md

(cherry picked from commit f0a4f19087)
This commit is contained in:
Jörg Thalheim 2024-09-18 15:39:08 +02:00 committed by Mergify
parent e0c8b0fc4f
commit 792099081c

View file

@ -22,8 +22,20 @@ R""(
# nix flake archive --json --dry-run nixops
```
* Upload all flake inputs to a different machine for remote evaluation
```
# nix flake archive --to ssh://some-machine
```
On the remote machine the flake can then be accessed via its store path. That's computed like this:
```
# nix flake metadata --json | jq -r '.path'
```
# Description
FIXME
Copy a flake and all its inputs to a store. This is useful i.e. to evaluate flakes on a different host.
)""