From 295a33a48e7e49d8996b2412f3a5f750980c743b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 22 May 2021 20:12:23 -0400 Subject: Add libera and other updates to znc --- Biz/Cloud/Znc.nix | 84 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 49 insertions(+), 35 deletions(-) (limited to 'Biz') diff --git a/Biz/Cloud/Znc.nix b/Biz/Cloud/Znc.nix index 9b1a28d..93ec86d 100644 --- a/Biz/Cloud/Znc.nix +++ b/Biz/Cloud/Znc.nix @@ -6,53 +6,67 @@ N.B.: generate znc passwords with 'nix-shell -p znc --command "znc --makepass"' */ -{ ... }: +{ pkgs, lib, ... }: { services = { znc = { enable = true; - mutable = false; - useLegacyConfig = false; openFirewall = true; + modulePackages = with pkgs.zncModules; [ + #backlog clientaway clientbuffer + #ignore + ]; + useLegacyConfig = false; config = { - LoadModule = [ "adminlog" ]; + LoadModule = [ "adminlog" "sasl" ]; + Motd = "welcome to znc.simatime.com"; 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; }; + LoadModule = [ "chansaver" "controlpanel" "log" "sasl" ]; + Network = { + freenode = { + Server = "chat.freenode.net +6697"; + Nick = "bsima"; + LoadModule = [ "simple_away" "nickserv" "sasl" ]; + Chan = { + "#ai" = {}; + "#haskell-miso" = { Detached = true; }; + "#home-manager" = { Detached = true; }; + "#servant" = { Detached = true; }; + }; }; - }; - Network.efnet = { - Server = "irc.efnet.info +6697"; - LoadModule = [ "simple_away" ]; + #efnet = { + # Server = "irc.efnet.info +6697"; + # LoadModule = [ "simple_away" ]; + #}; + libera = { + Server = "irc.libera.chat +6697"; + LoadModule = [ "simple_away" "nickserv" "sasl" ]; + Nick = "bsima"; + Chan = { + "#emacs" = { Detached = true; }; + "#guile" = {}; + "#guix" = { Detached = true; }; + "#haskell" = {}; + "#hledger" = {}; + "#nixos" = {}; # probably defunct + "#notmuch" = { Detached = true; }; + "#org-mode" = { Detached = true; }; + "#scheme" = { Detached = true; }; + "#sr.ht" = { Detached = true; }; + "#xmonad" = { Detached = true; }; + }; + }; + #oftc = { + # Server = "irc.oftc.net +6697"; + # LoadModule = [ "simple_away" "nickserv" ]; + #}; + #sorcery = { + # Server = "irc.sorcery.net +6697"; + #}; }; Pass.password = { Method = "sha256"; -- cgit v1.2.3