mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2026-09-20 00:59:04 +05:30
feat(shell): add pi-coding-agent and omp module
This commit is contained in:
36
modules/hm/shell/pi.nix
Normal file
36
modules/hm/shell/pi.nix
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
{
|
||||||
|
flake.modules.homeManager.shell = {pkgs, ...}: {
|
||||||
|
home.file.".pi/agent/auth.json".text = builtins.toJSON {
|
||||||
|
google = {
|
||||||
|
type = "api_key";
|
||||||
|
key = "!cat /run/secrets/gemini-api-key";
|
||||||
|
};
|
||||||
|
openrouter = {
|
||||||
|
type = "api_key";
|
||||||
|
key = "!cat /run/secrets/openrouter-api-key";
|
||||||
|
};
|
||||||
|
opencode-go = {
|
||||||
|
type = "api_key";
|
||||||
|
key = "!cat /run/secrets/opencode-go-api-key";
|
||||||
|
};
|
||||||
|
zai = {
|
||||||
|
type = "api_key";
|
||||||
|
key = "!cat /run/secrets/zai-coding-plan-api-key";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.pi-coding-agent = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.llm-agents.pi;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
defaultModel = "glm-5.3-flash";
|
||||||
|
defaultProvider = "zai";
|
||||||
|
defaultThinkingLevel = "medium";
|
||||||
|
theme = "dark";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
home.packages = with pkgs; [llm-agents.omp];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -31,6 +31,9 @@
|
|||||||
".local/share/zsh"
|
".local/share/zsh"
|
||||||
".local/share/zoxide"
|
".local/share/zoxide"
|
||||||
".local/state/lazygit"
|
".local/state/lazygit"
|
||||||
|
|
||||||
|
".pi/agent/sessions"
|
||||||
|
".omp"
|
||||||
];
|
];
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
|
|||||||
@@ -59,6 +59,8 @@
|
|||||||
".config/orca"
|
".config/orca"
|
||||||
".zcode"
|
".zcode"
|
||||||
".config/ZCode"
|
".config/ZCode"
|
||||||
|
".pi/agent/sessions"
|
||||||
|
".omp"
|
||||||
];
|
];
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
|
|||||||
@@ -59,6 +59,8 @@
|
|||||||
".config/orca"
|
".config/orca"
|
||||||
".zcode"
|
".zcode"
|
||||||
".config/ZCode"
|
".config/ZCode"
|
||||||
|
".pi/agent/sessions"
|
||||||
|
".omp"
|
||||||
];
|
];
|
||||||
|
|
||||||
files = [
|
files = [
|
||||||
|
|||||||
Reference in New Issue
Block a user