/* N.B.: generate znc passwords with 'nix-shell -p znc --command "znc --makepass"' - https://wiki.znc.in/Configuration */ { ... }: { services = { znc = { enable = true; mutable = false; useLegacyConfig = false; openFirewall = true; config = { LoadModule = [ "adminlog" ]; User.bsima = { Admin = true; Nick = "bsima"; AltNick = "bsima1"; LoadModule = [ "chansaver" "controlpanel" "log" ]; Network.freenode = { Server = "chat.freenode.net +6697"; LoadModule = [ "simple_away" "nickserv" "sasl" ]; Chan = { "#ai" = {}; "#biz" = { Modes = "+Sp"; }; "#bsima" = { Modes = "+Sp"; }; "##categorytheory" = { Detached = true; }; "#clojure" = { Detached = true; }; "#coq" = { Detached = true; }; "#emacs" = { Detached = true; }; "#guile" = { Detached = true; }; "#guix" = { Detached = true; }; "#haskell" = {}; "#haskell-miso" = { Detached = true; }; "#hledger" = {}; "#hnix" = { Detached = true; }; "#home-manager" = { Detached = true; }; "#ledger" = {}; "#nix-darwin" = { Detached = true; }; "#nixos" = {}; "#org-mode" = {}; "#scheme" = { Detached = true; }; "#servant" = { Detached = true; }; "#sr.ht" = { Detached = true; }; "#xmonad" = { Detached = true; }; }; }; Network.efnet = { Server = "irc.efnet.info +6697"; LoadModule = [ "simple_away" ]; }; Pass.password = { Method = "sha256"; Hash = "bead16d806e7bf5cbbc31d572b20f01e2b253eb60e2497ce465df56306becd02"; Salt = "/GhmBMc+E6b7qd8muFEe"; }; }; }; }; }; }