NNCP: Difference between revisions

imported>Ehmry
Add store path importing example
Ehmry (talk | contribs)
m Fix typo, update status of caller and daemon services.
Line 16: Line 16:
$ nncp-cfgnew -nocomments > /etc/secrets/nncp.hjson
$ nncp-cfgnew -nocomments > /etc/secrets/nncp.hjson
</syntaxhighlight>
</syntaxhighlight>
This file generated file be stripped down to include only the <code>self</code> and <code>neigh</code> sections:
This generated file should be stripped down to include only the <code>self</code> and <code>neigh</code> sections:


<pre>
<pre>
Line 88: Line 88:
== Callers and Daemons ==
== Callers and Daemons ==


Automatically starting the <code>nncp-caller</code> and <code>nncp-daemon</code> programs is not yet available from a NixOS module.
The NNCP caller and daemon can be enabled for NixOS using the options <code>services.nncp.caller</code> and <code>services.nncp.daemon</code>.
 
<syntaxhighlight lang="nix">
{
  services.nncp = let
    attrs = {
      enable = true;
      extraArgs = [ "-autotoss" ];
    };
  in {
    caller = attrs;
    daemon = attrs;
  };
}
</syntaxhighlight>


== Remote command execution ==
== Remote command execution ==