feat(talk): read API key from agenix file #24

Merged
m3tam3re merged 1 commits from feat/talk-agenix-key into master 2026-07-02 20:15:30 +02:00
Collaborator

Liest den ElevenLabs API-Key primär aus /run/agenix/elevenlabs-key statt aus der Environment-Variable.

1. /run/agenix/elevenlabs-key   ← primär (read -r, stripped newline)
2. $ELEVENLABS_API_KEY          ← Fallback (backwards compatible)
3. Error + exit 1               ← wenn keins von beiden

Änderungen:

  • pkgs/talk/default.nix: Key-Loading Logik
  • pkgs/talk/README.md: Doku aktualisiert

Vorteile:

  • Kein Key mehr im Environment (env, /proc/*/environ, shell history)
  • agenix-Datei ist per File-Permissions geschützt
  • Pfad via ELEVENLABS_KEY_FILE override-bar
Liest den ElevenLabs API-Key primär aus `/run/agenix/elevenlabs-key` statt aus der Environment-Variable. ``` 1. /run/agenix/elevenlabs-key ← primär (read -r, stripped newline) 2. $ELEVENLABS_API_KEY ← Fallback (backwards compatible) 3. Error + exit 1 ← wenn keins von beiden ``` Änderungen: - `pkgs/talk/default.nix`: Key-Loading Logik - `pkgs/talk/README.md`: Doku aktualisiert Vorteile: - Kein Key mehr im Environment (`env`, `/proc/*/environ`, shell history) - agenix-Datei ist per File-Permissions geschützt - Pfad via `ELEVENLABS_KEY_FILE` override-bar
m3ta-chiron added 1 commit 2026-07-02 20:15:19 +02:00
Primary: /run/agenix/elevenlabs-key (read via 'read -r' which strips
the trailing newline agenix files contain).
Fallback: ELEVENLABS_API_KEY env var (backwards compatible).

No need to export the key in shell environment anymore — if the
agenix secret exists, talk picks it up automatically.

Override path via ELEVENLABS_KEY_FILE env var if needed.
m3tam3re merged commit fc5092d72d into master 2026-07-02 20:15:30 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: m3tam3re/nixpkgs#24