ZNC: Difference between revisions
imported>Mth No edit summary |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
And use <code>services.znc.config</code> to configure ZNC as described in [https://wiki.znc.in/Configuration Configuration] on the ZNC wiki. | And use <code>services.znc.config</code> to configure ZNC as described in [https://wiki.znc.in/Configuration Configuration] on the ZNC wiki. | ||
=Clients= | ==Clients== | ||
Choose a password, and extract a hash with: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
$ nix-shell --packages znc --command "znc --makepass" | $ nix-shell --packages znc --command "znc --makepass" | ||
Line 29: | Line 29: | ||
Admin = true; | Admin = true; | ||
Pass.password = { | Pass.password = { | ||
Method = "sha256"; # Fill out this section | Method = "sha256"; # Fill out this section | ||
Hash = "..."; | Hash = "..."; # with the generated hash. | ||
Salt = "..."; | Salt = "..."; | ||
}; | }; | ||
Line 44: | Line 44: | ||
Next, see [https://wiki.znc.in/Connecting_to_ZNC Connecting] and [https://wiki.znc.in/Category:Clients Category:Clients] on the ZNC wiki. | Next, see [https://wiki.znc.in/Connecting_to_ZNC Connecting] and [https://wiki.znc.in/Category:Clients Category:Clients] on the ZNC wiki. | ||
=Networks= | ==Networks== | ||
SASL authentication is not yet supported from <code>configuration.nix</code>. Either <code>/msg *sasl</code> <ref>See [https://wiki.znc.in/Sasl Sasl] on the ZNC wiki.</ref> or use NickServ instead as shown below. | SASL authentication is not yet supported from <code>configuration.nix</code>. Either <code>/msg *sasl</code> <ref>See [https://wiki.znc.in/Sasl Sasl] on the ZNC wiki.</ref> or use NickServ instead as shown below. | ||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
service.znc.config.User.bob = { | service.znc.config.User.bob = { | ||
Network.freenode = { | Network.freenode = { | ||
Server = "chat.freenode.net +6697 | Server = "chat.freenode.net +6697"; | ||
Chan = { "#nixos" = {}; "#nixos-wiki" = {}; }; | Chan = { "#nixos" = {}; "#nixos-wiki" = {}; }; | ||
Nick = "bob"; | Nick = "bob"; # Supply your password as an argument | ||
LoadModule = [ "nickserv" ]; | LoadModule = [ "nickserv yourpassword" ]; # <- to the nickserv module here. | ||
JoinDelay = 2; # Avoid joining channels before authenticating. | JoinDelay = 2; # Avoid joining channels before authenticating. | ||
}; | }; | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Applications]] |