mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
nix copy: Add examples
This commit is contained in:
parent
88e6bb76de
commit
a2740c9ca2
1 changed files with 9 additions and 1 deletions
|
@ -39,9 +39,17 @@ struct CmdCopy : StorePathsCommand
|
|||
{
|
||||
return {
|
||||
Example{
|
||||
"To copy Firefox to the local store to a binary cache in file:///tmp/cache:",
|
||||
"To copy Firefox from the local store to a binary cache in file:///tmp/cache:",
|
||||
"nix copy --to file:///tmp/cache -r $(type -p firefox)"
|
||||
},
|
||||
Example{
|
||||
"To copy the entire current NixOS system closure to another machine via SSH:",
|
||||
"nix copy --to ssh://server -r /run/current-system"
|
||||
},
|
||||
Example{
|
||||
"To copy a closure from another machine via SSH:",
|
||||
"nix copy --from ssh://server -r /nix/store/a6cnl93nk1wxnq84brbbwr6hxw9gp2w9-blender-2.79-rc2"
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue