diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-08-12 09:37:26 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-08-12 09:37:26 -0700 |
| commit | ca1aa05ba5c1251695dfaa81b3d1fd4d1c2a03fe (patch) | |
| tree | 6aa275d3b335d354389e284a6d8d9ea9c94b0a86 /home | |
| parent | move each machine configuration to a folder (diff) | |
| download | infra-ca1aa05ba5c1251695dfaa81b3d1fd4d1c2a03fe.tar.gz | |
delete LLM related stuff for now
Diffstat (limited to 'home')
| -rw-r--r-- | home/profiles/llm.nix | 33 | ||||
| -rw-r--r-- | home/profiles/mac.nix | 2 | ||||
| -rw-r--r-- | home/profiles/secrets.nix | 12 | ||||
| -rw-r--r-- | home/programs/emacs/default.nix | 2 | ||||
| -rw-r--r-- | home/programs/emacs/init.el | 1 | ||||
| -rw-r--r-- | home/programs/emacs/site-lisp/init-llm.el | 33 |
6 files changed, 1 insertions, 82 deletions
diff --git a/home/profiles/llm.nix b/home/profiles/llm.nix deleted file mode 100644 index 2793373..0000000 --- a/home/profiles/llm.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ - configPath, - lib, - ... -}: -let - basePath = "llm/templates"; - llmTemplates = [ - "pr-prompt.yaml" - "commit-prompt.yaml" - "readme-gen.yaml" - ]; - mkLlmTemplate = file: { - ".config/${basePath}/${file}" = { - source = "${configPath}/${basePath}/${file}"; - }; - }; -in -{ - home.file = lib.mkMerge (map mkLlmTemplate llmTemplates); - - programs.fish = { - shellAliases = { - commit-msg = "git diff --cached | llm -t commit-prompt"; - pr-msg = "git diff HEAD | llm -t pr-prompt"; - readme-gen = "llm -t readme-gen"; - }; - }; - - home.sessionVariables = { - LLM_USER_PATH = "$HOME/.config/llm"; - }; -} diff --git a/home/profiles/mac.nix b/home/profiles/mac.nix index 66270c1..564ff23 100644 --- a/home/profiles/mac.nix +++ b/home/profiles/mac.nix @@ -15,7 +15,6 @@ "${self}/home/programs/ssh.nix" "${self}/home/programs/starship.nix" "${self}/home/programs/tmux.nix" - ./llm.nix ./secrets.nix ]; @@ -32,7 +31,6 @@ dust jless jq - llmPython.llm # llm and claude support nil # nix lsp nix-direnv # integration with direnv nixfmt-rfc-style # new formatter diff --git a/home/profiles/secrets.nix b/home/profiles/secrets.nix index 65131df..986a9e9 100644 --- a/home/profiles/secrets.nix +++ b/home/profiles/secrets.nix @@ -1,17 +1,7 @@ -{ self, config, ... }: +{ config, ... }: { age = { identityPaths = [ "${config.home.homeDirectory}/.ssh/agenix" ]; secretsDir = "${config.home.homeDirectory}/.local/share/agenix"; - - secrets = { - llm = { - file = "${self}/secrets/users/fcuny/llm.age"; - path = "${config.home.homeDirectory}/.config/llm/keys.json"; - }; - anthropic-api-key = { - file = "${self}/secrets/users/fcuny/anthropic-api-key.age"; - }; - }; }; } diff --git a/home/programs/emacs/default.nix b/home/programs/emacs/default.nix index c20f3da..7f00bf8 100644 --- a/home/programs/emacs/default.nix +++ b/home/programs/emacs/default.nix @@ -27,7 +27,6 @@ let git-link go-mode gotest - gptel # LLM client for Emacs hcl-mode jq-mode json-mode @@ -53,7 +52,6 @@ let "init.el" "site-lisp/init-base.el" "site-lisp/init-completion.el" - "site-lisp/init-llm.el" "site-lisp/init-programming.el" "site-lisp/init-text.el" "site-lisp/init-ui.el" diff --git a/home/programs/emacs/init.el b/home/programs/emacs/init.el index 973e4ad..b19f78a 100644 --- a/home/programs/emacs/init.el +++ b/home/programs/emacs/init.el @@ -16,7 +16,6 @@ (require 'init-completion) (require 'init-text) (require 'init-programming) -(require 'init-llm) (use-package server :config diff --git a/home/programs/emacs/site-lisp/init-llm.el b/home/programs/emacs/site-lisp/init-llm.el deleted file mode 100644 index 48346e6..0000000 --- a/home/programs/emacs/site-lisp/init-llm.el +++ /dev/null @@ -1,33 +0,0 @@ -;;; init-llm.el --- Configure LLMs -*- lexical-binding: t -*- -;; Author: Franck Cuny <franck@fcuny.net> - -;;; Commentary: - -;; Configure completions - -;;; Code: -(require 's) - -(defun fcuny/read-anthropic-key () - "Read and return the API key for anthropic." - (with-temp-buffer - (insert-file-contents "~/.local/share/agenix/anthropic-api-key") - (s-trim (buffer-string)))) - -(use-package gptel - :custom - (gptel-default-mode 'org-mode) - :config - (gptel-make-anthropic "Claude" :stream t :key (lambda () (fcuny/read-anthropic-key)))) - -(use-package aidermacs - :bind ("C-c a" . aidermacs-transient-menu) - :custom - (aider-args '("--no-check-update" "--no-show-model-warnings")) - (aidermacs-default-model "claude-3-7-sonnet-latest") - :config - (setenv "ANTHROPIC_API_KEY" (fcuny/read-anthropic-key))) - -(provide 'init-llm) - -;;; init-llm.el ends here |
