feat(nixosModules/secrets): add telegram_bot_token to secrets

This commit is contained in:
Mohammad Rafiq 2025-05-29 16:16:56 +08:00
parent 6054778ed2
commit 91ba03dfba
No known key found for this signature in database
3 changed files with 13 additions and 2 deletions

View file

@ -10,6 +10,7 @@
enable = true;
loadCredential = [
"cf_token:${config.sops.secrets."keys/cloudflare".path}"
"telegram_bot_token:${config.sops.secrets."keys/telegram_bot".path}"
];
settings = {
provider = "Cloudflare";
@ -41,6 +42,14 @@
];
ip_type = "IPv4";
interval = 300;
notify = {
telegram = {
enabled = true;
bot_api_key_file = "$CREDENTIALS_DIRECTORY/telegram_bot_token";
chat_id = "384288005";
message_template = "Domain *{{ .Domain }} has been updated to %0A{{ .CurrentIP }}";
};
};
};
};
})

View file

@ -8,6 +8,7 @@
"keys/gemini" = { };
"keys/cvt-jira" = { };
"keys/cloudflare" = { };
"keys/telegram_bot" = { };
"misc/cvt-jira-link" = { };
"rafiq/hashedPassword".neededForUsers = true;
};