appservice-irc: the gods showed me the truth

Merci à @esum pour l'assistance bien utile.

Signed-off-by: Ryan Lahfa <federez-infra@lahfa.xyz>
This commit is contained in:
Ryan Lahfa 2024-02-12 14:15:24 +01:00
parent 8acdce99df
commit 5d6bc4eb71

View file

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