Compare commits

...

2 commits

Author SHA1 Message Date
f302514403
Add aider/aidermacs
All checks were successful
EVAL aarch64-linux.sisko
BUILD aarch64-linux.sisko
UPLOAD aarch64-linux.sisko
DOWNLOAD aarch64-linux.sisko
CACHIX aarch64-linux.sisko
ATTIC aarch64-linux.sisko
/ test (push) Successful in 1m29s
2025-06-04 15:01:04 +02:00
cea95102f7
Rename secret chatgpt-token to openrouter-api-key 2025-06-04 15:00:28 +02:00
6 changed files with 18 additions and 7 deletions

View file

@ -12,7 +12,7 @@ in
{ {
systemd.user.sessionVariables = { systemd.user.sessionVariables = {
EDITOR = lib.mkForce "emacsclient -c"; EDITOR = lib.mkForce "emacsclient -c";
OPENAI_API_KEY_PATH = age.secrets.chatgpt-token.path; OPENROUTER_API_KEY_PATH = age.secrets.openrouter-api-key.path;
}; };
programs.emacs = { programs.emacs = {
enable = true; enable = true;
@ -50,6 +50,7 @@ in
math-preview math-preview
emacs-lsp-booster emacs-lsp-booster
texlive.combined.scheme-full texlive.combined.scheme-full
aider-chat-full
] ]
++ (with hunspellDicts; [ ++ (with hunspellDicts; [
en_US-large en_US-large

View file

@ -1032,13 +1032,22 @@ This is meant to be an helper to be called from the window manager."
(:map org-mode-map (:map org-mode-map
(("M-p" . org-download-clipboard)))) (("M-p" . org-download-clipboard))))
(use-package aidermacs
:bind (("C-c A" . aidermacs-transient-menu))
:init
(require 'f)
(setenv "OPENROUTER_API_KEY" (f-read-text (getenv "OPENROUTER_API_KEY_PATH")))
:custom
(aidermacs-use-architect-mode t)
(aidermacs-default-model "openrouter/deepseek/deepseek-chat-v3-0324"))
(use-package gptel (use-package gptel
:custom :custom
(gptel-model 'google/gemini-2.5-flash-preview) (gptel-model 'google/gemini-2.5-flash-preview)
(gptel-backend (gptel-make-openai "OpenRouter" (gptel-backend (gptel-make-openai "OpenRouter"
:host "openrouter.ai" :host "openrouter.ai"
:endpoint "/api/v1/chat/completions" :endpoint "/api/v1/chat/completions"
:key (lambda () (require 'f) (f-read-text (getenv "OPENAI_API_KEY_PATH"))) :key (lambda () (require 'f) (f-read-text (getenv "OPENROUTER_API_KEY_PATH")))
:stream t :stream t
:models '(google/gemini-2.5-flash-preview)) :models '(google/gemini-2.5-flash-preview))
) )

View file

@ -33,7 +33,7 @@
]; ];
secrets = { secrets = {
"deltaflyer-wireguard-private-key" = { }; "deltaflyer-wireguard-private-key" = { };
"chatgpt-token".owner = "ccr"; "openrouter-api-key".owner = "ccr";
}; };
}; };
@ -54,7 +54,7 @@
]; ];
secrets = { secrets = {
"kirk-wireguard-private-key" = { }; "kirk-wireguard-private-key" = { };
"chatgpt-token".owner = "ccr"; "openrouter-api-key".owner = "ccr";
"cachix-personal-token".owner = "ccr"; "cachix-personal-token".owner = "ccr";
"git-workspace-tokens".owner = "ccr"; "git-workspace-tokens".owner = "ccr";
"autistici-password".owner = "ccr"; "autistici-password".owner = "ccr";
@ -81,7 +81,7 @@
]; ];
secrets = { secrets = {
"picard-wireguard-private-key" = { }; "picard-wireguard-private-key" = { };
"chatgpt-token".owner = "ccr"; "openrouter-api-key".owner = "ccr";
"cachix-personal-token".owner = "ccr"; "cachix-personal-token".owner = "ccr";
"git-workspace-tokens".owner = "ccr"; "git-workspace-tokens".owner = "ccr";
"autistici-password".owner = "ccr"; "autistici-password".owner = "ccr";
@ -143,7 +143,7 @@
]; ];
secrets = { secrets = {
"pike-wireguard-private-key" = { }; "pike-wireguard-private-key" = { };
"chatgpt-token".owner = "ccr"; "openrouter-api-key".owner = "ccr";
"cachix-personal-token".owner = "ccr"; "cachix-personal-token".owner = "ccr";
"git-workspace-tokens".owner = "ccr"; "git-workspace-tokens".owner = "ccr";
"autistici-password".owner = "ccr"; "autistici-password".owner = "ccr";

View file

@ -208,6 +208,7 @@ let
visual-replace visual-replace
org-super-agenda org-super-agenda
tidal tidal
aidermacs
# org-re-reveal # FIXME very not nice hash mismatch when building # org-re-reveal # FIXME very not nice hash mismatch when building
] ]
) )

View file

@ -84,7 +84,7 @@ with keys.users;
ccr-ssh ccr-ssh
sisko sisko
]; ];
"chatgpt-token.age".publicKeys = [ "openrouter-api-key.age".publicKeys = [
ccr-ssh ccr-ssh
kirk kirk
mothership mothership