Change some mautrix-telegram settings

This commit is contained in:
Alexander Bantyev 2022-11-25 10:15:07 +04:00
parent 00ae0524f0
commit 9a01881183
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
3 changed files with 9 additions and 3 deletions

View File

@ -87,6 +87,7 @@ in {
stkb.rewrap stkb.rewrap
shardulm94.trailing-spaces shardulm94.trailing-spaces
meraymond.idris-vscode meraymond.idris-vscode
ocamllabs.ocaml-platform
] ++ pkgs.lib.concatMap builtins.attrValues ] ++ pkgs.lib.concatMap builtins.attrValues
(builtins.attrValues custom-extensions); (builtins.attrValues custom-extensions);

View File

@ -63,23 +63,28 @@
plaintext_highlights = true; plaintext_highlights = true;
startup_sync = true; startup_sync = true;
username_template = "tg_{userid}"; username_template = "tg_{userid}";
relay_user_distinguishers = [ ];
state_event_formats = {
leave = "";
name_change = "";
};
}; };
homeserver = { homeserver = {
address = "https://matrix.balsoft.ru"; address = "https://matrix.balsoft.ru";
domain = "balsoft.ru"; domain = "balsoft.ru";
verify_ssl = true; verify_ssl = true;
}; };
telegram = { bot_token = "disabled"; };
}; };
}; };
secrets-envsubst.mautrix-telegram = { secrets-envsubst.mautrix-telegram = {
secrets = [ "as_token" "hs_token" "api_id" "api_hash" ]; secrets = [ "as_token" "hs_token" "api_id" "api_hash" "bot_token" ];
template = '' template = ''
MAUTRIX_TELEGRAM_APPSERVICE_AS_TOKEN=$as_token MAUTRIX_TELEGRAM_APPSERVICE_AS_TOKEN=$as_token
MAUTRIX_TELEGRAM_APPSERVICE_HS_TOKEN=$hs_token MAUTRIX_TELEGRAM_APPSERVICE_HS_TOKEN=$hs_token
MAUTRIX_TELEGRAM_TELEGRAM_API_ID=$api_id MAUTRIX_TELEGRAM_TELEGRAM_API_ID=$api_id
MAUTRIX_TELEGRAM_TELEGRAM_API_HASH=$api_hash MAUTRIX_TELEGRAM_TELEGRAM_API_HASH=$api_hash
MAUTRIX_TELEGRAM_TELEGRAM_BOT_TOKEN=$bot_token
''; '';
}; };

View File

@ -3,7 +3,7 @@
enable = true; enable = true;
hostName = "nextcloud.balsoft.ru"; hostName = "nextcloud.balsoft.ru";
config.adminpassFile = config.secrets.nextcloud.decrypted; config.adminpassFile = config.secrets.nextcloud.decrypted;
package = pkgs.nextcloud23; package = pkgs.nextcloud24;
https = true; https = true;
}; };
secrets.nextcloud = { secrets.nextcloud = {