diff --git a/profiles/irc-bot.nix b/profiles/irc-bot.nix index 3557ac9..795f339 100644 --- a/profiles/irc-bot.nix +++ b/profiles/irc-bot.nix @@ -1,53 +1,61 @@ { ... }: { -services.matrix-appservice-irc = { - enable = true; - registrationUrl = "http://localhost:8009"; + services.matrix-appservice-irc = { + enable = true; + registrationUrl = "http://127.0.0.1:8009"; - settings = { - homeserver.url = "https://matrix.federez.net"; - homeserver.domain = "federez.net"; + settings = { + homeserver.url = "https://matrix.federez.net"; + homeserver.domain = "federez.net"; - ircService.servers."irc.rezosup.org" = { - name = "RezoSup"; - port = 6667; - # ssl = true; - # botConfig = { - # enabled = true; - # nick = "FederezMatrix"; - # username = "federezmatrix"; - # }; - dynamicChannels = { - enabled = true; - createAlias = true; - # published = true; - aliasTemplate = "#irc_$CHANNEL"; - }; - - matrixClients = { - userTemplate = "@irc_$NICK"; - }; - ircClients = { - nickTemplate = "$LOCALPART[m]"; - allowNickChanges = true; - }; - - membershipLists = { - enabled = true; - global = { - ircToMatrix = { - initial = true; - incremental = true; + ircService.servers."irc.rezosup.org" = { + name = "RezoSup"; + additionalAddresses = [ ]; + onlyAdditionalAddresses = false; + port = 6697; + ssl = true; + sslselfsign = true; + modePowerMap = { + o = 50; + v = 1; + }; + botConfig.enabled = false; + privateMessages.enabled = true; + dynamicChannels = { + enabled = true; + groupId = "+rezosup:rezosup.net"; + aliasTemplate = "$CHANNEL"; + }; + membershipLists = { + enabled = true; + global = { + ircToMatrix = { + initial = true; + incremental = true; + requireMatrixJoined = true; + }; + matrixToIrc = { + initial = true; + incremental = true; + }; }; - matrixToIrc = { - initial = true; - incremental = true; + }; + matrixClients = { + userTemplate = "@irc_$NICK"; + displayName = "$NICK"; + }; + ircClients = { + nickTemplate = "$DISPLAY"; + allowNickChanges = true; + maxClients = 500; + lineLimit = 10; + kickOn = { + channelJoinFailure = true; + ircConnectionFailure = true; + userQuit = true; }; }; }; - }; - logging = { - level = "debug"; + logging = { level = "debug"; }; }; }; -}; }