summaryrefslogtreecommitdiff
path: root/depo/nutin-madaj/znc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'depo/nutin-madaj/znc.nix')
-rw-r--r--depo/nutin-madaj/znc.nix24
1 files changed, 20 insertions, 4 deletions
diff --git a/depo/nutin-madaj/znc.nix b/depo/nutin-madaj/znc.nix
index a7623c1..f16a572 100644
--- a/depo/nutin-madaj/znc.nix
+++ b/depo/nutin-madaj/znc.nix
@@ -1,3 +1,9 @@
+/*
+
+N.B.: generate znc passwords with 'nix-shell -p znc --command "znc --makepass"'
+
+*/
+
{ ... }:
{
@@ -8,10 +14,20 @@
useLegacyConfig = false;
openFirewall = true;
config = {
- LoadModule = [ "adminlog" "fail2ban" ];
+ LoadModule = [ "adminlog" ];
+ Listener.l = {
+ AllowIRC = true;
+ AllowWeb = true;
+ Host = "localhost";
+ Port = 5000;
+ IPv4 = true;
+ IPv6 = true;
+ SSL = false; # FIXME
+ URIPrefix = "/znc/";
+ };
User.bsima = {
Admin = true;
- Nick = "bsima";
+ Nick = "bsima";
AltNick = "bsima1";
LoadModule = [ "chansaver" "controlpanel" ];
Network.freenode = { Server = "chat.freenode.net +6697";
@@ -31,8 +47,8 @@
};
Pass.password = {
Method = "sha256";
- Hash = "4a6703074c713a26d56a906fc9ea82bb591177f10a25a650719266bf588d9525";
- Salt = "QByO-A:4Rbib;dl_3wEH";
+ Hash = "879e124fbb75e1bae770ab8e7c8f1fb79650a9d63236006cd5cbc37b1504cd49";
+ Salt = "_s66HV-MtmH2tD+Kp*1E";
};
};
};