Skip to content

Commit

Permalink
import tips
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Dec 6, 2023
1 parent 83d4676 commit 045b368
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions en/tips.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Tips

```query
path:./*
```
17 changes: 17 additions & 0 deletions en/tips/remote-cp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copying packages to a remote Nix store

This is useful if your local machine is powerful and you have built a number of
packages on it, but want to re-use them on another machine, without using a Nix
cache or rebuilding them.

```sh
nix copy --to ssh-ng://admin@100.96.121.13 /nix/store/???
```

If you use [nixci](#nixci), this looks like:

```sh
nixci . -- --option system aarch64-linux | xargs nix copy --to ssh-ng://admin@100.96.121.13
```

[nixci]: https://github.com/srid/nixci

0 comments on commit 045b368

Please sign in to comment.