From 7bf686481ca7c411e2774f999a7e76f1315a7a20 Mon Sep 17 00:00:00 2001 From: m3tm3re
Date: Mon, 13 Apr 2026 16:44:18 +0200 Subject: [PATCH 1/2] feat: config with agents rework --- flake.lock | 90 +++++++++++------------ home/features/cli/nushell.nix | 1 + home/features/coding/default.nix | 10 ++- home/features/coding/opencode.nix | 6 +- home/features/coding/pi.nix | 31 ++++++++ hosts/m3-hermes/services/hermes-agent.nix | 11 +-- 6 files changed, 94 insertions(+), 55 deletions(-) create mode 100644 home/features/coding/pi.nix diff --git a/flake.lock b/flake.lock index 5ce394e..238009a 100644 --- a/flake.lock +++ b/flake.lock @@ -26,17 +26,14 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1774977190, - "narHash": "sha256-C4FJ0UhbHQngXqPZNPrNShb0tFXYXFdYdXSg1WezKes=", - "ref": "refs/heads/master", - "rev": "a05558b8112574fc4e8e82094ce1420ee02c0770", - "revCount": 67, - "type": "git", - "url": "https://code.m3ta.dev/m3tam3re/AGENTS" + "lastModified": 1775879794, + "narHash": "sha256-4BN5pGaEXREaDi2uZ8hU8nROUZr4ps9TwkN3eb/wMIo=", + "path": "/home/m3tam3re/p/AI/AGENTS", + "type": "path" }, "original": { - "type": "git", - "url": "https://code.m3ta.dev/m3tam3re/AGENTS" + "path": "/home/m3tam3re/p/AI/AGENTS", + "type": "path" } }, "base16-schemes": { @@ -268,11 +265,11 @@ "uv2nix": "uv2nix_2" }, "locked": { - "lastModified": 1775750438, - "narHash": "sha256-8HoZTK49+dK26iBcaizanUpy37JH3nkPVrZHcPBVtUM=", + "lastModified": 1775818389, + "narHash": "sha256-Ex2WE+apD96FZt8e/uRgbTUxSWslxv37zd2Ovbd4LYA=", "owner": "NousResearch", "repo": "hermes-agent", - "rev": "d9753720f366287d52be14386e8f1eabbbe89fe3", + "rev": "0b143f2ea3ddef4e0bf725bdd931541f8af27882", "type": "github" }, "original": { @@ -309,11 +306,11 @@ ] }, "locked": { - "lastModified": 1775622785, - "narHash": "sha256-/yFxO+7oS1SymDfJ2iVO7K5vJKcYfe9XGIJ+quLqz0Q=", + "lastModified": 1775781825, + "narHash": "sha256-L5yKTpR+alrZU2XYYvIxCeCP4LBHU5jhwSj7H1VAavg=", "owner": "nix-community", "repo": "home-manager", - "rev": "527e47b78fe67213072f706bf933a9705a8c4974", + "rev": "e35c39fca04fee829cecdf839a50eb9b54d8a701", "type": "github" }, "original": { @@ -410,11 +407,11 @@ "treefmt-nix": "treefmt-nix" }, "locked": { - "lastModified": 1775619181, - "narHash": "sha256-McIhvwQTDZKRmCGJoHlAOAkPR2SrExTA+BMjYrSIr7Q=", + "lastModified": 1775818866, + "narHash": "sha256-zkjkwAGYNxRsXm3TBSqTwqbQbJpTEqwBC6KPGnh7Wxw=", "owner": "numtide", "repo": "llm-agents.nix", - "rev": "a6a61ddf000bb1ef8a5ee96e403fa3859ba4f9ab", + "rev": "290a25e026fa42bb74ae49a3a9a74904eb68be34", "type": "github" }, "original": { @@ -432,17 +429,14 @@ "openspec": "openspec" }, "locked": { - "lastModified": 1775663240, - "narHash": "sha256-W81Zj1C6Beuqgd2yKhW0no84H7FJhEh74hPvecO4bbU=", - "ref": "refs/heads/master", - "rev": "77833a7ecaa4b30999872c31b90cb023b4a348f3", - "revCount": 216, - "type": "git", - "url": "https://code.m3ta.dev/m3tam3re/nixpkgs" + "lastModified": 1775881067, + "narHash": "sha256-PutNWyXD08PmouVLZBksCLcywHowUE/YrVTNs5Rr6Ls=", + "path": "/home/m3tam3re/p/NIX/nixpkgs", + "type": "path" }, "original": { - "type": "git", - "url": "https://code.m3ta.dev/m3tam3re/nixpkgs" + "path": "/home/m3tam3re/p/NIX/nixpkgs", + "type": "path" } }, "nix-colors": { @@ -595,11 +589,11 @@ }, "nixpkgs-master_2": { "locked": { - "lastModified": 1775657704, - "narHash": "sha256-ldvwmtmpbkFtDdJSUYdeV/yoqQMAXQ64nOKd4nXttyk=", + "lastModified": 1775820596, + "narHash": "sha256-DDZkqNCW97pb1WX6sDICPnDEYcnIhGMVNLyrDOA2RUQ=", "owner": "nixos", "repo": "nixpkgs", - "rev": "60d18e6d1b200cf2785973abfee746b05d547f3c", + "rev": "8ccce85bee20142e7d9eb7f3423c5f4fb69fa985", "type": "github" }, "original": { @@ -611,11 +605,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1775525138, - "narHash": "sha256-BQb70+B378ECLO8iQT3P/b1hCC5/CJVHZdeulY8futc=", + "lastModified": 1775595990, + "narHash": "sha256-OEf7YqhF9IjJFYZJyuhAypgU+VsRB5lD4DuiMws5Ltc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d96b37bbeb9840f1c0ebfe90585ef5067b69bbb3", + "rev": "4e92bbcdb030f3b4782be4751dc08e6b6cb6ccf2", "type": "github" }, "original": { @@ -675,11 +669,11 @@ }, "nixpkgs_5": { "locked": { - "lastModified": 1775579569, - "narHash": "sha256-/m3yyS/EnXqoPGBJYVy4jTOsirdgsEZ3JdN2gGkBr14=", + "lastModified": 1775763530, + "narHash": "sha256-BuTK9z1QEwWPOIakQ1gCN4pa4VwVJpfptYCviy2uOGc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "dfd9566f82a6e1d55c30f861879186440614696e", + "rev": "b0188973b4b2a5b6bdba8b65381d6cd09a533da0", "type": "github" }, "original": { @@ -723,11 +717,11 @@ }, "nixpkgs_8": { "locked": { - "lastModified": 1775423009, - "narHash": "sha256-vPKLpjhIVWdDrfiUM8atW6YkIggCEKdSAlJPzzhkQlw=", + "lastModified": 1775710090, + "narHash": "sha256-ar3rofg+awPB8QXDaFJhJ2jJhu+KqN/PRCXeyuXR76E=", "owner": "nixos", "repo": "nixpkgs", - "rev": "68d8aa3d661f0e6bd5862291b5bb263b2a6595c9", + "rev": "4c1018dae018162ec878d42fec712642d214fdfa", "type": "github" }, "original": { @@ -761,11 +755,11 @@ ] }, "locked": { - "lastModified": 1775657246, - "narHash": "sha256-9VboBkwhYT9xs7JvXYvx8+qIjHGueL9LAqFrBJXaJsI=", + "lastModified": 1775820600, + "narHash": "sha256-C2ffOYhqlKqKqc0KEkMQXIs6NHpM5ewEoO+o+XZCo8c=", "owner": "nix-community", "repo": "NUR", - "rev": "170ee9758a0ce00edd1bcdc6137178ee3f597469", + "rev": "38d9344bb5323e582090d0033428a8dd7e684fde", "type": "github" }, "original": { @@ -954,11 +948,11 @@ "skills-anthropic": { "flake": false, "locked": { - "lastModified": 1774451446, - "narHash": "sha256-w//9LB1OVG9jlllY+VDse7Js0dn5x6Ys2vPuQACKsTM=", + "lastModified": 1775755206, + "narHash": "sha256-H/oorOl5cch7bnziDz7gHNBv5Q0OAwFbk9w1WLku2kk=", "owner": "anthropics", "repo": "skills", - "rev": "98669c11ca63e9c81c11501e1437e5c47b556621", + "rev": "12ab35c2eb5668c95810e6a6066f40f4218adc39", "type": "github" }, "original": { @@ -1098,11 +1092,11 @@ ] }, "locked": { - "lastModified": 1775125835, - "narHash": "sha256-2qYcPgzFhnQWchHo0SlqLHrXpux5i6ay6UHA+v2iH4U=", + "lastModified": 1775636079, + "narHash": "sha256-pc20NRoMdiar8oPQceQT47UUZMBTiMdUuWrYu2obUP0=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "75925962939880974e3ab417879daffcba36c4a3", + "rev": "790751ff7fd3801feeaf96d7dc416a8d581265ba", "type": "github" }, "original": { diff --git a/home/features/cli/nushell.nix b/home/features/cli/nushell.nix index 9af5e45..16d1cba 100644 --- a/home/features/cli/nushell.nix +++ b/home/features/cli/nushell.nix @@ -25,6 +25,7 @@ in { $env.FZF_DEFAULT_COMMAND = "fd --type f --exclude .git --follow --hidden" $env.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh" $env.PATH = ($env.PATH | split row (char esep) | append $"($env.HOME)/.cache/.bun/bin" | append $"($env.HOME)/.npm-global/bin" | uniq) + $env.NPM_CONFIG_PREFIX = $"($env.HOME)/.npm-global" $env.FLAKE = $"($env.HOME)/p/NIX/nixos-config" # Load kestractl-env from agenix diff --git a/home/features/coding/default.nix b/home/features/coding/default.nix index 6dd851e..c51c6b9 100644 --- a/home/features/coding/default.nix +++ b/home/features/coding/default.nix @@ -1,10 +1,18 @@ { + config, pkgs, videoDrivers, ... -}: { +}: let + npmGlobalPrefix = "${config.home.homeDirectory}/.npm-global"; +in { + home.file.".npmrc".text = '' + prefix=${npmGlobalPrefix} + ''; + home.sessionVariables.NPM_CONFIG_PREFIX = npmGlobalPrefix; imports = [ ./opencode.nix + ./pi.nix ]; programs.mcp = { enable = true; diff --git a/home/features/coding/opencode.nix b/home/features/coding/opencode.nix index 60e23eb..5e4ab9f 100644 --- a/home/features/coding/opencode.nix +++ b/home/features/coding/opencode.nix @@ -1,5 +1,5 @@ {inputs, ...}: { - coding.opencode = { + coding.agents.opencode = { enable = true; agentsInput = inputs.agents; @@ -12,6 +12,10 @@ {src = inputs.skills-basecamp;} {src = inputs.skills-kestra;} ]; + }; + + coding.opencode = { + enable = true; # AZ-Gruppe LiteLLM endpoint + available models extraSettings = { diff --git a/home/features/coding/pi.nix b/home/features/coding/pi.nix new file mode 100644 index 0000000..55f0481 --- /dev/null +++ b/home/features/coding/pi.nix @@ -0,0 +1,31 @@ +{inputs, ...}: { + coding.agents.pi = { + enable = true; + agentsInput = inputs.agents; + + modelOverrides = { + chiron = "zai-coding-plan/glm-5.1"; + chiron-forge = "zai-coding-plan/glm-5.1"; + }; + + settings = { + packages = [ + "npm:@thesethrose/pi-zai-provider" + "npm:pi-mcp-adapter" + "npm:pi-subagents" + "npm:pi-lens" + "npm:pi-web-access" + "npm:pi-prompt-template-model" + "npm:@plannotator/pi-extension" + "npm:pi-powerline-footer" + "npm:pi-markdown-preview" + ]; + + defaultProvider = "zai"; + defaultModel = "glm-5.1"; + defaultThinkingLevel = "medium"; + }; + + # MCP servers auto-inherited from programs.mcp in default.nix + }; +} diff --git a/hosts/m3-hermes/services/hermes-agent.nix b/hosts/m3-hermes/services/hermes-agent.nix index d415e2e..13ad5b9 100644 --- a/hosts/m3-hermes/services/hermes-agent.nix +++ b/hosts/m3-hermes/services/hermes-agent.nix @@ -125,11 +125,12 @@ in { max_iterations = 50; }; - # ── Discord ──────────────────────────────────────────────────────── - discord = { - require_mention = true; - auto_thread = true; - reactions = true; + # ── Matrix ──────────────────────────────────────────────────────── + matrix = { + homeserver = "https://matrix.m3ta.dev"; + user_id = "@chiron:m3ta.dev"; + allowed_users = ["@m3tam3re:m3ta.dev"]; + encryption = true; }; # ── Approvals / Security ─────────────────────────────────────────── -- 2.53.0 From 40507bb9302433793201f2178a76e51399e62d55 Mon Sep 17 00:00:00 2001 From: m3tm3re
Date: Mon, 13 Apr 2026 16:53:33 +0200
Subject: [PATCH 2/2] feat: config with agents rework
---
secrets/honcho-key.age | Bin 0 -> 1373 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 secrets/honcho-key.age
diff --git a/secrets/honcho-key.age b/secrets/honcho-key.age
new file mode 100644
index 0000000000000000000000000000000000000000..930b6aa28742d5659914a10fad0a5f53dcd0ed57
GIT binary patch
literal 1373
zcmYdHPt{G$OD?J`D9Oyv)5|YP*Do{V(zR14F3!+RO))YxHMCSP@$>O6DpzpUHuUr}
zv@{6}%}a9$4>K;!a