From bd4e4dfefd73ed578be8bdac3b1fda6f21482979 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Mon, 13 May 2019 17:37:27 -0700 Subject: refactor nutin-madaj nix code --- depo/nutin-madaj/znc.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 depo/nutin-madaj/znc.nix (limited to 'depo/nutin-madaj/znc.nix') diff --git a/depo/nutin-madaj/znc.nix b/depo/nutin-madaj/znc.nix new file mode 100644 index 0000000..a7623c1 --- /dev/null +++ b/depo/nutin-madaj/znc.nix @@ -0,0 +1,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"; + }; + }; + }; + }; + }; +} -- cgit v1.2.3