NNCP: Difference between revisions
imported>Ehmry Add store path importing example |
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 | 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 == | ||
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 == | ||