NNCP: Difference between revisions

imported>Ehmry
Quick first version
 
imported>Ehmry
Add store path importing example
 
Line 89: Line 89:


Automatically starting the <code>nncp-caller</code> and <code>nncp-daemon</code> programs is not yet available from a NixOS module.
Automatically starting the <code>nncp-caller</code> and <code>nncp-daemon</code> programs is not yet available from a NixOS module.
== Remote command execution ==
=== Store path importing ===
NNCP config:
<syntaxhighlight lang="nix">
{
  programs.nncp.settings.neigh.${NODE}.exec.nix-store-import = "nix-store --import";
}
</syntaxhighlight>
Export command:
<syntaxhighlight lang="console">
$ nix-store --export ./result | nncp-exec "$NODE" nix-store-import
</syntaxhighlight>