aboutsummaryrefslogtreecommitdiff
path: root/home/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2026-01-03 11:07:35 -0800
committerFranck Cuny <franck@fcuny.net>2026-01-03 11:07:35 -0800
commitce05d9398d0df62c00888474e28026819defcd62 (patch)
tree6452e1f2a43a92778eec6cef1a38f8af79b5761b /home/profiles
parentconfigure the theme for bottom and bat (diff)
downloadinfra-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.nix10
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"
];