aboutsummaryrefslogtreecommitdiffstats
path: root/home/tenere.nix
blob: 7e4fcca6bd6edc9ea9e4b57b34e271cdf470eb2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ config, pkgs, ... }:
{
  xdg.configFile."tenere/config.toml".text = ''
    llm  = "chatgpt"

    [chatgpt]
    openai_api_key = $(${pkgs.coreutils}/bin/cat ${config.age.secrets.openai_auth_token.path})
    model = "gpt-4.1"
    url = "https://api.openai.com/v1/chat/completions"
  '';
}