fix config

neo
Lzebulon 2025-01-26 16:12:13 +01:00 committed by RatCornu
parent 3261ac37fb
commit 995db8f677
No known key found for this signature in database
GPG Key ID: B3BE02E379E6E8E2
1 changed files with 8 additions and 7 deletions

View File

@ -25,7 +25,8 @@ let
} }
'' ''
remarshal --if yaml --of json -i ${pkg}/config.schema.yml -o config.schema.json remarshal --if yaml --of json -i ${pkg}/config.schema.yml -o config.schema.json
python -m jsonschema config.schema.json -i $configPath # desactive le check sinon on a des probleme avec envsubst
# python -m jsonschema config.schema.json -i $configPath
cp "$configPath" "$out" cp "$configPath" "$out"
''; '';
@ -75,7 +76,7 @@ in
dynamicChannels = { dynamicChannels = {
enabled = true; enabled = true;
useHomeserverDirectory = true; useHomeserverDirectory = true;
aliasTemplate = "\$CHANNEL"; aliasTemplate = "\$\$CHANNEL";
}; };
membershipLists = { membershipLists = {
@ -100,12 +101,12 @@ in
}; };
matrixClients = { matrixClients = {
userTemplate = "@irc_\$NICK"; userTemplate = "@irc_\$\$NICK";
displayName = "\$NICK"; displayName = "\$\$NICK";
}; };
ircClients = { ircClients = {
nickTemplate = "\$DISPLAY"; nickTemplate = "\$\$DISPLAY";
allowNickChanges = true; allowNickChanges = true;
maxClients = 300; maxClients = 300;
ipv6.enabled = false; ipv6.enabled = false;
@ -138,8 +139,8 @@ in
matrixHandler = { matrixHandler = {
eventCacheSize = 4096; eventCacheSize = 4096;
shortReplyTemplate = "\$NICK: \$REPLY"; shortReplyTemplate = "\$\$NICK: \$\$REPLY";
longReplyTemplate = "<\$NICK> \"\$ORIGINAL\" <- \$REPLY"; longReplyTemplate = "<\$\$NICK> \"\$\$ORIGINAL\" <- \$\$REPLY";
shortReplyTresholdSeconds = 300; shortReplyTresholdSeconds = 300;
}; };