mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-15 02:36:16 +02:00
add description + example for nix flake archive
Update src/nix/flake-archive.md Update src/nix/flake-archive.md
This commit is contained in:
parent
95f2b2beab
commit
f0a4f19087
1 changed files with 13 additions and 1 deletions
|
@ -22,8 +22,20 @@ R""(
|
||||||
# nix flake archive --json --dry-run nixops
|
# 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
|
# Description
|
||||||
|
|
||||||
FIXME
|
Copy a flake and all its inputs to a store. This is useful i.e. to evaluate flakes on a different host.
|
||||||
|
|
||||||
)""
|
)""
|
||||||
|
|
Loading…
Reference in a new issue