Skip to content

Commit

Permalink
Merge of #12198
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jan 10, 2025
2 parents 8de2086 + 7920990 commit 9b69ecf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/nix/flake-archive.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

)""

0 comments on commit 9b69ecf

Please sign in to comment.