summaryrefslogtreecommitdiff
path: root/nix/modules/znc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/modules/znc.nix')
-rw-r--r--nix/modules/znc.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/nix/modules/znc.nix b/nix/modules/znc.nix
new file mode 100644
index 0000000..c2e2079
--- /dev/null
+++ b/nix/modules/znc.nix
@@ -0,0 +1,31 @@
+{ lib, config, ... }:
+{
+ services.znc = {
+ enable = lib.mkDefault config.monorepo.profiles.server.enable;
+ openFirewall = true;
+ confOptions = {
+ useSSL = true;
+ passBlock = ''
+<Pass password>
+ Method = sha256
+ Hash = d4abdd69aa24de69693885c5bd83a4a0e9ee989e1a69a905041b0dad9abc06ea
+ Salt = sDY,?H5AxC-!gH3a.:)D
+</Pass>
+'';
+ modules = [
+ "partyline"
+ "webadmin"
+ "adminlog"
+ "log"
+ ];
+ networks = {
+ "libera" = {
+ server = "irc.libera.chat";
+ port = 6697;
+ useSSL = true;
+ modules = [ "simple_away" ];
+ };
+ };
+ };
+ };
+}