From ce05d9398d0df62c00888474e28026819defcd62 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 3 Jan 2026 11:07:35 -0800 Subject: configure aider and emacs properly Use anthropic's models and set the API key. --- home/profiles/darwin.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'home/profiles') 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" ]; -- cgit v1.2.3