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; };