Update flake to unstable, add chromium/opencode modules, update emacs config

This commit is contained in:
2026-03-15 01:27:58 +02:00
parent 68d2c50721
commit 07fb5656f2
12 changed files with 299 additions and 71 deletions
+6 -39
View File
@@ -2,50 +2,17 @@
orgTrivialBuild,
epkgs,
pkgs,
}: let
ghgptel = (epkgs.callPackage epkgs.trivialBuild {
pname = "gptel";
version = "0.9.9.3";
src = pkgs.fetchFromGitHub {
owner = "karthink";
repo = "gptel";
rev = "273c0f93958c1ffa85e396717b504903eda36bce"; # Use a specific commit hash for reproducibility
sha256 = "sha256-gVgdFLi6RGUCD3ZXzOIo5XpTNmP/9xMAO5nyWu1zVlM=";
};
})
orgTrivialBuild {
} : orgTrivialBuild {
pname = "azos-emacs-lauretta";
version = "0.1.6";
src = ./elisp/azos-emacs-lauretta.org;
packageRequires = with epkgs; [
pkgs.azos-emacs-base
pkgs.azos-emacs-dev
pkgs.azos-emacs-editor
pkgs.azos-emacs-exwm
pkgs.azos-emacs-station
ghgptel
(epkgs.callPackage epkgs.trivialBuild {
pname = "gptel-autocomplete";
version = "2025-06-18";
src = pkgs.fetchFromGitHub {
owner = "JDNdeveloper";
repo = "gptel-autocomplete";
rev = "8ace326a6e7b8a3a4df7a6e80272b472e7fbd167"; # Use a specific commit hash for reproducibility
sha256 = "sha256-gVgdFLi6RGUCD3ZXzOIo5XpTNmP/9lMAO5nyWu1zVlM=";
};
buildInputs = with epkgs; [
ghgptel
];
})
(epkgs.callPackage epkgs.trivialBuild {
pname = "gptel-agent";
version = "0.0.1";
src = pkgs.fetchFromGitHub {
owner = "karthink";
repo = "gptel-agent";
rev = "8ba9056da2341468192e6417d47cb50e26636e97"; # Use a specific commit hash for reproducibility
sha256 = "sha256-M2J/K3UHoAbDWQjYPD8ZdL6uHBggvPh+ZvJ+xnbXJuo=";
};
buildInputs = with epkgs; [
ghgptel
];
})
agent-shell
];
}
+21 -4
View File
@@ -6,6 +6,10 @@
#+begin_src emacs-lisp
(require 'azos-emacs-base)
(require 'azos-emacs-dev)
(require 'azos-emacs-editor)
(require 'azos-emacs-exwm)
(require 'azos-emacs-station)
#+end_src
* Lauretta specific
@@ -14,16 +18,29 @@
#+begin_src emacs-lisp
(setq
gptel-model 'meta/llama-3.1-8b-instant
gptel-model 'openai/gpt-oss-120b
gptel-backend
(gptel-make-openai "Groq"
:host "api.groq.com"
:endpoint "/openai/v1/chat/completions"
:stream t
:key "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"
:models '('meta/llama-3.1-8b-instant)))
(setq gptel-agent-dirs '("/home/aner/.agents"))
(gptel-agent-update)
:models '(openai/gpt-oss-120b)))
;; This is where I would update agents if I had them
;; (setq gptel-agent-dirs '("/home/aner/.agents"))
;; (gptel-agent-update)
(use-package agent-shell
:ensure t
:ensure-system-package
:config
;; Evil state-specific RET behavior: insert mode = newline, normal mode = send
(evil-define-key 'insert agent-shell-mode-map (kbd "RET") #'newline)
(evil-define-key 'normal agent-shell-mode-map (kbd "RET") #'comint-send-input)
(add-hook 'diff-mode-hook
(lambda ()
(when (string-match-p "\\*agent-shell-diff\\*" (buffer-name))
(evil-emacs-state)))))
#+end_src
** Headphones