ZNC: Difference between revisions

imported>Mth
mNo edit summary
Klinger (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 17: Line 17:
==Clients==
==Clients==


Generate a password with:
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 with the generated password.
       Method = "sha256"; # Fill out this section
       Hash = "...";
       Hash = "...";     # with the generated hash.
       Salt = "...";
       Salt = "...";
     };
     };
Line 49: Line 49:
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
service.znc.config.User.bob = {
service.znc.config.User.bob = {
   Network.freenode = {                               #    The nickserv module will
   Network.freenode = {
     Server = "chat.freenode.net +6697 yourpassword"; # <- pick up your password here.
     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]]