[Nix-dev] How to use binaries from other hosts?

Matthias Beyer mail at beyermatthias.de
Mon Mar 14 10:21:09 CET 2016


See:

    nix-copy-closure --from --use-substitutes -v  banane /nix/store/pamgbxci7n1q1s0r3y438k7zc7z3ig1k-racket-6.3
    bash: nix-store: command not found
    unable to connect to ‘banane’

My host is named "banane", the port and user is set in my .ssh/config file.

On 14-03-2016 10:15:41, Adrien Devresse wrote:
> > I tried _everything_. I cannot nix-copy-closure, as this one does not allow me
> > to set the SSH port (which isn't 22 but something above 10000).
> 
> You can define any host / port matching through the configuration file
> "~/.ssh/config" for any program using SSH.
> 
> Something like
> 
> ""
> Host [youHost]
>     port 10000
> 
> """
> 
> should do the trick
> 
> Adrien
> 
> 
> Le 14/03/2016 10:07, Matthias Beyer a écrit :
> > Hi,
> >
> > I'm on nixos unstable. As racket does not build and my thinkpad takes hours to
> > build it, I got myself a debian VM in my university cloud and compiled racket
> > there.
> >
> > How can I retrieve the closure from there?
> >
> > I tried _everything_. I cannot nix-copy-closure, as this one does not allow me
> > to set the SSH port (which isn't 22 but something above 10000).
> >
> > I tried to nix-store --export, copy via SCP and then nix-store --import, but it
> > fails as the closure is not signed...
> >
> > Can someone please help me with this?
> >
> > I normally install racket with a nix-shell for my blog environment. I guess I
> > should make this shell env persistent to be save of GC, though I cannot find
> > documentation on how to _remove_ a persistent shell env... and I want to know
> > how to remove it, before making it permanent.
> >
> >
> >
> > _______________________________________________
> > nix-dev mailing list
> > nix-dev at lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 



> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


-- 
Mit freundlichen Grüßen,
Kind regards,
Matthias Beyer

Proudly sent with mutt.
Happily signed with gnupg.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160314/a39be0f1/attachment.bin 


More information about the nix-dev mailing list