Skip to content

Commit

Permalink
Merge pull request #12198 from NixOS/mergify/bp/2.24-maintenance/pr-1…
Browse files Browse the repository at this point in the history
…1530

add description + example for nix flake archive (backport #11530)
  • Loading branch information
mergify[bot] authored Jan 10, 2025
2 parents 53bc8b5 + 7920990 commit 0e95d8b
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 0e95d8b

Please sign in to comment.