mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 00:02:25 +00:00
doc: convention improvements for copying closure (#10702)
* doc: convention improvements for copying closure use -P, which only considers executables but not shell builtins Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
This commit is contained in:
parent
2f0031aedc
commit
05ad4e8806
@ -78,14 +78,14 @@ authentication, you can avoid typing the passphrase with `ssh-agent`.
|
||||
Copy Firefox with all its dependencies to a remote machine:
|
||||
|
||||
```console
|
||||
$ nix-copy-closure --to alice@itchy.labs $(type -tP firefox)
|
||||
$ nix-copy-closure --to alice@itchy.example.org $(type -P firefox)
|
||||
```
|
||||
|
||||
Copy Subversion from a remote machine and then install it into a user
|
||||
environment:
|
||||
|
||||
```console
|
||||
$ nix-copy-closure --from alice@itchy.labs \
|
||||
$ nix-copy-closure --from alice@itchy.example.org \
|
||||
/nix/store/0dj0503hjxy5mbwlafv1rsbdiyx1gkdy-subversion-1.4.4
|
||||
$ nix-env --install /nix/store/0dj0503hjxy5mbwlafv1rsbdiyx1gkdy-subversion-1.4.4
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user