From 7327b3149a5f944198424d739e610ceb6f9ad191 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Fri, 19 Dec 2025 13:11:06 +0100 Subject: [PATCH] tlg-wotd: temporarily disable --- configs/bots/default.nix | 6 +++++- configs/bots/tlg-wotd.nix | 9 +++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/configs/bots/default.nix b/configs/bots/default.nix index 5920ec1..a6cc3c1 100644 --- a/configs/bots/default.nix +++ b/configs/bots/default.nix @@ -17,11 +17,15 @@ in { ./hesychius.nix ./smyth.nix ./nachtischsatan.nix - ./tlg-wotd.nix + # ./tlg-wotd.nix TODO reenable ./celan.nix ./nietzsche.nix ]; + age.secrets = { + telegram-token-kmein.file = ../../secrets/telegram-token-kmein.age; + }; + systemd.tmpfiles.rules = map (path: tmpfilesConfig { type = "d"; diff --git a/configs/bots/tlg-wotd.nix b/configs/bots/tlg-wotd.nix index 5dadc0d..d5b6ba3 100644 --- a/configs/bots/tlg-wotd.nix +++ b/configs/bots/tlg-wotd.nix @@ -3,11 +3,14 @@ lib, config, niveumPackages, + unstablePackages, ... }: let mastodonEndpoint = "https://social.krebsco.de"; in { systemd.services.bot-tlg-wotd = { + # TODO reenable + # once https://github.com/NixOS/nixpkgs/pull/462893 is in stable NixOS enable = true; wants = ["network-online.target"]; startAt = "9:30"; @@ -42,9 +45,8 @@ in { #ancientgreek #classics #wotd #wordoftheday - transliteration=$(${pkgs.writers.makePythonWriter pkgs.python311 pkgs.python311Packages pkgs.python3Packages "translit.py" { - # revert to pkgs.writers.writePython3 once https://github.com/NixOS/nixpkgs/pull/353367 is merged - libraries = [ pkgs.python3Packages.cltk ]; + transliteration=$(${pkgs.writers.writePython3 "translit.py" { + libraries = py: [ py.cltk ]; } '' import sys from cltk.phonology.grc.transcription import Transcriber @@ -149,7 +151,6 @@ in { }; age.secrets = { - telegram-token-kmein.file = ../../secrets/telegram-token-kmein.age; mastodon-token-tlgwotd.file = ../../secrets/mastodon-token-tlgwotd.age; };