1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Merge pull request #12198 from NixOS/mergify/bp/2.24-maintenance/pr-11530

add description + example for nix flake archive (backport #11530)
This commit is contained in:
mergify[bot] 2025-01-10 20:51:38 +00:00 committed by GitHub
commit 0e95d8b467
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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.
)""