diff options
author | Ben Sima <ben@bsima.me> | 2019-05-13 17:37:27 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-05-13 17:37:27 -0700 |
commit | bd4e4dfefd73ed578be8bdac3b1fda6f21482979 (patch) | |
tree | 1a3e59d184aa5d2a1b0f8f905878cea8ede36fab /depo/nutin-madaj/znc.nix | |
parent | 45f72cbf8ac58a8dd528c656482356c0933ed61f (diff) |
refactor nutin-madaj nix code
Diffstat (limited to 'depo/nutin-madaj/znc.nix')
-rw-r--r-- | depo/nutin-madaj/znc.nix | 41 |
1 files changed, 41 insertions, 0 deletions
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"; + }; + }; + }; + }; + }; +} |