mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
fix(catullus): use system-secrets
This commit is contained in:
@@ -106,7 +106,7 @@ in {
|
||||
services.matterbridge = {
|
||||
enable = true;
|
||||
configPath = toString (pkgs.writeTOML (import <niveum/dot/matterbridge.nix> {
|
||||
token = lib.strings.fileContents <secrets/telegram/kmein.token>;
|
||||
token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||
}));
|
||||
};
|
||||
}
|
||||
@@ -131,7 +131,7 @@ in {
|
||||
telegram = {
|
||||
enable = true;
|
||||
chatId = [ "18980945" ];
|
||||
botToken = lib.strings.fileContents <secrets/telegram/kmein.token>;
|
||||
botToken = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||
};
|
||||
urls = [
|
||||
# "https://michael-klonovsky.de/acta-diurna"
|
||||
@@ -192,7 +192,7 @@ in {
|
||||
};
|
||||
|
||||
environment.etc."tinc/retiolum/rsa_key.priv" = {
|
||||
text = builtins.readFile <secrets/retiolum.key>;
|
||||
text = builtins.readFile <system-secrets/retiolum.key>;
|
||||
mode = "400";
|
||||
};
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ in {
|
||||
niveum.telegramBots.autorenkalender = {
|
||||
enable = true;
|
||||
time = "07:00";
|
||||
token = lib.strings.fileContents <secrets/telegram/kmein.token>;
|
||||
token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||
chatIds = [ "@autorenkalender" ];
|
||||
parseMode = "Markdown";
|
||||
command = "${autorenkalender}/bin/autorenkalender";
|
||||
|
||||
@@ -30,7 +30,7 @@ in {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
description = "Telegram bot reciting the Odyssey to you";
|
||||
environment.TELEGRAM_ODYSSEY_TOKEN =
|
||||
lib.strings.fileContents <secrets/telegram/odyssey.token>;
|
||||
lib.strings.fileContents <system-secrets/telegram/odyssey.token>;
|
||||
enable = true;
|
||||
script = "${telebots.odyssey}/bin/telegram-odyssey";
|
||||
serviceConfig.Restart = "always";
|
||||
@@ -40,7 +40,7 @@ in {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
description = "Telegram bot for reversing things";
|
||||
environment.TELEGRAM_REVERSE_TOKEN =
|
||||
lib.strings.fileContents <secrets/telegram/reverse.token>;
|
||||
lib.strings.fileContents <system-secrets/telegram/reverse.token>;
|
||||
enable = true;
|
||||
script = "${telebots.reverse}/bin/telegram-reverse";
|
||||
serviceConfig.Restart = "always";
|
||||
@@ -51,7 +51,7 @@ in {
|
||||
description =
|
||||
"Telegram bot for converting Ancient Greek betacode into unicode";
|
||||
environment.TELEGRAM_BETACODE_TOKEN =
|
||||
lib.strings.fileContents <secrets/telegram/betacode.token>;
|
||||
lib.strings.fileContents <system-secrets/telegram/betacode.token>;
|
||||
enable = true;
|
||||
script = "${telebots.betacode}/bin/telegram-betacode";
|
||||
serviceConfig.Restart = "always";
|
||||
|
||||
@@ -6,7 +6,7 @@ in {
|
||||
niveum.telegramBots.quotebot = {
|
||||
enable = true;
|
||||
time = "08/6:00";
|
||||
token = lib.strings.fileContents <secrets/telegram/kmein.token>;
|
||||
token = lib.strings.fileContents <system-secrets/telegram/kmein.token>;
|
||||
chatIds = [ "18980945" "757821027" "455964311" ];
|
||||
command = "${literature-quote}/bin/literature-quote";
|
||||
parseMode = "Markdown";
|
||||
|
||||
@@ -31,7 +31,7 @@ in {
|
||||
description = "*flubberflubber*";
|
||||
enable = true;
|
||||
script = toString (nachtischsatan-bot {
|
||||
token = lib.strings.fileContents <secrets/telegram/nachtischsatan.token>;
|
||||
token = lib.strings.fileContents <system-secrets/telegram/nachtischsatan.token>;
|
||||
});
|
||||
serviceConfig.Restart = "always";
|
||||
};
|
||||
|
||||
@@ -12,7 +12,7 @@ in {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
description = "Telegram bot for generating inspiring but useless proverbs";
|
||||
environment.TELEGRAM_PROVERB_TOKEN =
|
||||
lib.strings.fileContents <secrets/telegram/proverb.token>;
|
||||
lib.strings.fileContents <system-secrets/telegram/proverb.token>;
|
||||
enable = true;
|
||||
script = "${telegram-proverb}/bin/proverb_bot.py";
|
||||
serviceConfig.Restart = "always";
|
||||
|
||||
Reference in New Issue
Block a user