NNCP: Difference between revisions
m Fix typo, update status of caller and daemon services.  | 
				 Add configuration example for receiving email.  | 
				||
| Line 118: | Line 118: | ||
<syntaxhighlight lang="console">  | <syntaxhighlight lang="console">  | ||
$ nix-store --export ./result | nncp-exec "$NODE" nix-store-import  | $ nix-store --export ./result | nncp-exec "$NODE" nix-store-import  | ||
</syntaxhighlight>  | |||
=== Receiving Email ===  | |||
<syntaxhighlight lang="nix">  | |||
# NixOS module that allows Bob and Carol to send email to Alice.  | |||
#  | |||
let  | |||
  mailer.exec.sendmail = [  | |||
    "/run/wrappers/bin/sendmail" # Use the system `sendmail`.  | |||
    "alice"                      # Redirect all messages to the `alice` user.  | |||
  ];  | |||
in  | |||
{  | |||
  programs.nncp.settings.neigh = {  | |||
    bob = mailer;  | |||
    carol = mailer;  | |||
  };  | |||
}  | |||
</syntaxhighlight>  | </syntaxhighlight>  | ||