diff options
| author | Franck Cuny <franck@fcuny.net> | 2026-01-03 11:07:35 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2026-01-03 11:07:35 -0800 |
| commit | ce05d9398d0df62c00888474e28026819defcd62 (patch) | |
| tree | 6452e1f2a43a92778eec6cef1a38f8af79b5761b /home/profiles | |
| parent | configure the theme for bottom and bat (diff) | |
| download | infra-ce05d9398d0df62c00888474e28026819defcd62.tar.gz | |
configure aider and emacs properly
Use anthropic's models and set the API key.
Diffstat (limited to 'home/profiles')
| -rw-r--r-- | home/profiles/darwin.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/home/profiles/darwin.nix b/home/profiles/darwin.nix index 136a93f..53c6ff8 100644 --- a/home/profiles/darwin.nix +++ b/home/profiles/darwin.nix @@ -3,6 +3,12 @@ age = { identityPaths = [ "${config.home.homeDirectory}/.ssh/agenix" ]; secretsDir = "${config.home.homeDirectory}/.local/share/agenix"; + + secrets = { + anthropic-api-key = { + file = ../../secrets/users/fcuny/anthropic-api-key.age; + }; + }; }; imports = [ @@ -39,6 +45,10 @@ ps = "${pkgs.procs}/bin/procs"; }; + programs.fish.shellInit = '' + export ANTHROPIC_API_KEY="$(cat ${config.age.secrets.anthropic-api-key.path})" + ''; + home.sessionPath = [ "${config.home.homeDirectory}/.local/bin" ]; |
