From a427f319d4c8d746f93608c47b54e54f47d9aba3 Mon Sep 17 00:00:00 2001 From: m3tm3re Date: Mon, 27 Apr 2026 13:24:34 +0200 Subject: [PATCH] feat(agents): add gitIdentity config and git-identity rule - coding.agents.gitIdentity enabled with m3ta-chiron identity - coding.agents.pi.codingRules.concerns includes 'git-identity' - Uses feature/agent-git-identity branches for m3ta-nixpkgs and agents --- flake.lock | 22 ++++++++++++---------- flake.nix | 5 ++--- home/coding/agents/agents.nix | 8 ++++++++ home/coding/agents/pi.nix | 1 + 4 files changed, 23 insertions(+), 13 deletions(-) diff --git a/flake.lock b/flake.lock index fb96b67..bfa7cdb 100644 --- a/flake.lock +++ b/flake.lock @@ -26,15 +26,16 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1777053633, - "narHash": "sha256-AtoguTQc8x4ysH5KSlRaFMx1elTOnTdk1u4YtqlttVU=", - "ref": "refs/heads/master", - "rev": "6e0e847299b81665ba594668fff208278bb3de3b", - "revCount": 73, + "lastModified": 1777287027, + "narHash": "sha256-8GM2Aydq9i8KbvyObqyMYhWkY+e7oh3+eyMfUVnt6Oo=", + "ref": "feature/agent-git-identity", + "rev": "3487050bbd9126251a2fce98363858e1ee55ea23", + "revCount": 80, "type": "git", "url": "https://code.m3ta.dev/m3tam3re/AGENTS" }, "original": { + "ref": "feature/agent-git-identity", "type": "git", "url": "https://code.m3ta.dev/m3tam3re/AGENTS" } @@ -452,15 +453,16 @@ "openspec": "openspec" }, "locked": { - "lastModified": 1776876631, - "narHash": "sha256-YgTb6pugAvUiSm7xVMpejf6kJPodhq8fOYQDdELfwQg=", - "ref": "refs/heads/master", - "rev": "03ad7451fcfafde94da937afb6cf96ca39cc8e2f", - "revCount": 244, + "lastModified": 1777288631, + "narHash": "sha256-crbjn8KvewFwvBKovX1r4jdmGF96XePe7U9eT9LHVFY=", + "ref": "feature/agent-git-identity", + "rev": "fa339ae8ccdf1d3ae35b7571a9639f45952c725e", + "revCount": 251, "type": "git", "url": "https://code.m3ta.dev/m3tam3re/nixpkgs" }, "original": { + "ref": "feature/agent-git-identity", "type": "git", "url": "https://code.m3ta.dev/m3tam3re/nixpkgs" } diff --git a/flake.nix b/flake.nix index e1b8ee2..79413a7 100644 --- a/flake.nix +++ b/flake.nix @@ -22,8 +22,7 @@ nixpkgs-9e58ed7.url = "github:nixos/nixpkgs/9e58ed7ba759d81c98f033b7f5eba21ca68f53b0"; nixpkgs-master.url = "github:nixos/nixpkgs/master"; - m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs"; - # m3ta-nixpkgs.url = "path:/home/m3tam3re/p/NIX/nixpkgs"; + m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs?ref=feature/agent-git-identity"; llm-agents.url = "github:numtide/llm-agents.nix"; # @@ -46,7 +45,7 @@ agents = { # url = "path:/home/m3tam3re/p/AI/AGENTS"; - url = "git+https://code.m3ta.dev/m3tam3re/AGENTS"; + url = "git+https://code.m3ta.dev/m3tam3re/AGENTS?ref=feature/agent-git-identity"; }; ## Skills skills-basecamp = { diff --git a/home/coding/agents/agents.nix b/home/coding/agents/agents.nix index 755e25b..19d511f 100644 --- a/home/coding/agents/agents.nix +++ b/home/coding/agents/agents.nix @@ -9,6 +9,14 @@ videoDrivers ? [], ... }: { + # Agent Git Identity configuration + coding.agents.gitIdentity = { + enable = true; + name = "m3ta-chiron"; + email = "m3ta-chiron@agentmail.to"; + sshKey = "/home/m3tam3re/.ssh/m3ta-chiron"; + }; + imports = [ # OpenCode and Pi agent configurations ./opencode.nix diff --git a/home/coding/agents/pi.nix b/home/coding/agents/pi.nix index dfd4605..d08745a 100644 --- a/home/coding/agents/pi.nix +++ b/home/coding/agents/pi.nix @@ -23,6 +23,7 @@ "documentation" # Documentation standards "testing" # Testing guidelines (Arrange-Act-Assert) "git-workflow" # Conventional commits, branch naming + "git-identity" # Git identity configuration for agents "project-structure" # Project layout conventions ];