summaryrefslogtreecommitdiff
path: root/depo/nutin-madaj/znc.nix
blob: a7623c1224413e28fc62ac67104d3f7fe82cf5d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ ... }:

{
  services = {
    znc = {
      enable = true;
      mutable = true;
      useLegacyConfig = false;
      openFirewall = true;
      config = {
        LoadModule = [ "adminlog" "fail2ban" ];
        User.bsima = {
          Admin = true;
          Nick = "bsima";
          AltNick = "bsima1";
          LoadModule = [ "chansaver" "controlpanel" ];
          Network.freenode = { Server = "chat.freenode.net +6697";
            LoadModule = [ "simple_away" "nickserv" ];
            Chan = {
              "#ai"           = {};
              "#bsima"        = {};
              "#emacs"        = {};
              "#haskell"      = {};
              "#haskell-miso" = {};
              "#home-manager" = {};
              "#nixos"        = {};
              "#servant"      = {};
              "#sr.ht"        = {};
              "#xmonad"       = {};
            };
          };
          Pass.password = {
            Method = "sha256";
            Hash = "4a6703074c713a26d56a906fc9ea82bb591177f10a25a650719266bf588d9525";
            Salt = "QByO-A:4Rbib;dl_3wEH";
          };
        };
      };
    };
  };
}