diff options
author | Ben Sima <ben@bsima.me> | 2021-05-22 20:12:23 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-11-26 13:47:35 -0500 |
commit | 295a33a48e7e49d8996b2412f3a5f750980c743b (patch) | |
tree | 99c5102ad0a40c9d190f9032cc413df12a0a19cf /Biz/Cloud/Znc.nix | |
parent | 1f38fde0bfde01af0e8c575c470be0bbcf827e22 (diff) |
Add libera and other updates to znc
Diffstat (limited to 'Biz/Cloud/Znc.nix')
-rw-r--r-- | Biz/Cloud/Znc.nix | 84 |
1 files changed, 49 insertions, 35 deletions
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"; |