diff --git a/secrets b/secrets index 1f7aea0..c622f9b 160000 --- a/secrets +++ b/secrets @@ -1 +1 @@ -Subproject commit 1f7aea07f7e3cac6a2af69d52163fd64f6ae5467 +Subproject commit c622f9bac9d2ddfa86701d903aac02d8907b2142 diff --git a/systems/makanek/radio-news.nix b/systems/makanek/radio-news.nix index 0887a55..2b58b32 100644 --- a/systems/makanek/radio-news.nix +++ b/systems/makanek/radio-news.nix @@ -22,9 +22,10 @@ in { ]; startAt = "hourly"; script = '' + set -efu PATH=$PATH:${lib.makeBinPath [pkgs.w3m pkgs.gnused pkgs.curl pkgs.jq]} - export TOKEN="$(cat "$CREDENTIALS_DIRECTORY/gemini-api-key")" + export GEMINI_API_KEY="$(cat "$CREDENTIALS_DIRECTORY/gemini-api-key")" WIKI_URL="https://en.wikipedia.org/wiki/Portal:Current_events"