Compare commits

...
42 Commits
Author SHA1 Message Date
m3ta-chiron ef584cfa06 fix: broken vibetyper pkg 2026-11-03 19:49:19 +01:00
m3ta-chiron 8b7d52f5d4 Merge pull request 'refactor(m3-hermes): use the T3 Code module from m3ta-home' (#33) from feat/m3-hermes-t3code-module into master 2026-11-03 18:10:31 +01:00
m3ta-chiron 26bc5b5562 Merge pull request 'chore(flake): update inputs and drop unsupported systems' (#34) from chore/flake-update into master 2026-11-03 18:10:30 +01:00
m3ta-chironandClaude Opus 5.5 464de584a4 chore(flake): update inputs and drop unsupported systems
Full flake update. Drops x86_64-darwin (unsupported by nixpkgs 26.11) and
i686-linux (agenix and colmena publish no packages for it), so
`nix flake check --all-systems` passes. m3ta-nixpkgs and m3ta-home carry
the fixes the new nixpkgs and home-manager need.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 18:10:06 +01:00
m3ta-chironandClaude Opus 5.5 6a608a8e6a refactor(m3-hermes): use the T3 Code module from m3ta-home
The server now binds the NetBird address of wt0 instead of 0.0.0.0, so
the pairing URL is reachable from mesh peers, and the port opens on wt0
via the module instead of hand-written ip46tables rules. The agent
runtime (agent-lib sync, Claude skills, Gitea SSH) stays host-specific.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 18:03:04 +01:00
m3ta-chiron effbdd04dc Merge pull request 'chore(flake): bump m3ta-nixpkgs and m3ta-home' (#32) from fix/bump-m3ta-inputs into master 2026-11-03 17:38:54 +01:00
m3ta-chironandClaude Opus 5.5 cc5f85c1cc chore(flake): bump m3ta-nixpkgs and m3ta-home
Picks up the vibetyper fix that drops fuse2, which newer nixpkgs removed;
the next nixpkgs bump would otherwise fail on every desktop host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 16:20:34 +01:00
Sascha KönigandClaude Opus 5.5 93e4429ab0 Merge branch 'feat/t3code-module': T3 Code from the m3ta-home module
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 12:27:54 +01:00
Sascha KönigandClaude Opus 5.5 09f509c37b refactor(secrets): rename agent Gitea tokens per instance, add work token for m3-kratos
hermes-gitea-token.age is renamed unchanged to agent-gitea-token-m3ta.age. agent-gitea-token-az.age carries the m3ta-chiron token for git.az-gruppe.com, for m3-kratos only. Also bumps m3ta-home to the T3 Code module.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 12:27:54 +01:00
Sascha KönigandClaude Opus 5.5 aef9d84d61 refactor(m3-kratos): use the T3 Code module from m3ta-home
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 08:02:07 +01:00
m3ta-chiron ba302a8a00 Merge pull request 'feat(m3-kratos): run T3 Code as a service on the NetBird IP' (#31) from feat/m3-kratos-t3code-service into master
Reviewed-on: #31
2026-11-01 13:54:18 +01:00
m3ta-chironandClaude Opus 5.5 845af0e897 feat(m3-kratos): run T3 Code as a service on the NetBird IP
The desktop app ignores --host, so its LAN host override goes away too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:49:19 +01:00
m3ta-chiron 8f52714343 Merge pull request 'fix(m3-kratos): advertise T3 Code on the NetBird name' (#30) from fix/m3-kratos-t3code-lan-host into master
Reviewed-on: #30
2026-11-01 13:38:40 +01:00
m3ta-chironandClaude Opus 5.5 773ec3e4f9 fix(m3-kratos): advertise T3 Code on the NetBird name
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:35:13 +01:00
m3tam3re d4cc6d80d8 Merge branch 'fix/m3-kratos-t3code-firewall' 2026-11-01 13:27:48 +01:00
m3tam3re 0c52f97bde Merge branch 'fix/t3code-gitea-provider' 2026-11-01 13:27:48 +01:00
m3tam3re 1cf5cb44ea Merge branch 'chore/remove-fish' 2026-11-01 13:27:48 +01:00
m3tam3reandClaude Opus 5.5 ee0a8908d0 feat(m3-kratos): allow T3 Code port from the NetBird mesh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:26:53 +01:00
m3tam3reandClaude Opus 5.5 5a66da916d fix(t3code): recognize code.m3ta.dev as Gitea for change requests
T3 only detects a Gitea on a custom domain through a matching tea or fj
login, so creating a change request failed with "No unknown source control
provider is registered". Put tea on T3's PATH with an m3ta-chiron login built
at runtime from the hermes-gitea-token agenix secret.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:24:11 +01:00
m3ta-chironandClaude Opus 5.5 b20861c991 chore: stop tracking the Beads gate lock
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:23:40 +01:00
m3tam3re 8a9fb31c9a chore: remove fish shell from host configs
- Drop fish.enable from the desktop, portable, and server shell profiles in hosts/common/users/m3tam3re.nix
- Remove programs.fish.enable from m3-atlas, m3-helios, m3-hermes, and m3-kratos
2026-11-01 13:19:03 +01:00
m3ta-chironandClaude Opus 5.5 d25015bc9d fix(t3code): run T3 agents as m3ta-chiron on every host
The identity lived in the m3-hermes service and in home-manager session
variables. Neither reaches the T3 desktop app on m3-kratos, so its agents
committed and pushed as m3tam3re. Wrap the T3 packages via an overlay so
everything T3 spawns inherits commit identity and Gitea push auth,
independent of host and launcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:14:02 +01:00
m3tam3reandClaude Opus 5.5 a2d226583f fix(t3code): provide Beads to T3 Code agents on m3-hermes
bd was neither on the t3code service PATH nor on the system. Add it to
both, like the harnesses, and set BEADS_ACTOR so the audit trail matches
the m3ta-chiron commit identity.

Also take the bd 1.3.2 migration of .beads (config, gitignore, hooks) and
ignore the .beads.gate.lock it creates in the repo root.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 13:09:34 +01:00
m3tam3re cf1c4b9f31 Merge pull request 'fix(t3code): gitea SSH im Service HOME-unabhaengig machen' (#29) from fix/t3code-ssh-hardening into master
Reviewed-on: #29
2026-10-31 16:46:02 +01:00
m3ta-chiron 56f2295e6e fix(t3code): make gitea SSH access HOME-independent in the service
The T3 threads could clone from gitea interactively (m3tam3re terminal)
but not from the t3code service context. Instead of guessing which link
in the spawn chain drops HOME, make every link irrelevant:

- t3SshConfig: absolute IdentityFile (no ~ resolution needed)
- service env: HOME set explicitly + GIT_SSH_COMMAND pointing at the
  absolute store-path ssh config — git uses exactly this config for
  gitea remotes regardless of HOME or user ssh-config lookup

Verified via nix eval: HOME=/home/m3tam3re and
GIT_SSH_COMMAND=ssh -F /nix/store/...-t3-gitea-ssh-config land in the
unit. After deploy: systemctl restart t3code, then retrigger the clone
thread.
2026-10-31 16:44:15 +01:00
m3ta-chiron 95f5b76629 chore: fix agent-prod 2026-10-31 16:20:18 +01:00
m3tam3re cae0e33625 Merge pull request 'feat(m3-hermes): T3 agent runtime — agent-lib skills + gitea as m3ta-chiron' (#28) from feat/t3code-agent-lib-gitea into master
Reviewed-on: #28
2026-10-31 15:59:27 +01:00
m3ta-chiron e3c3823a46 feat(m3-hermes): T3 agent runtime — agent-lib skills + gitea as m3ta-chiron
- agent-lib v2 client: /etc config + timer sync (2h/on-boot) as m3tam3re,
  deploys work repo into ~/.agents/skills + ~/.config/opencode/*
- Claude Code skills mirror (system path unit, port of m3ta-home
  claude-skills.nix)
- git identity m3ta-chiron via t3code service env (no ~/.gitconfig hijack)
- gitea SSH for m3tam3re (User gitea, key ~/.ssh/gitea) + host key pinned
  system-wide; one-time keygen steps documented in module header
2026-10-31 15:23:58 +01:00
m3tam3re bfd45b81ef Merge pull request 'fix(m3-hermes): firewall.service failed — ip46tables cannot parse IPv4 CIDR' (#27) from fix/firewall-ip46tables into master
Reviewed-on: #27
2026-10-31 13:26:56 +01:00
m3ta-chiron d8239fcd32 fix(m3-hermes): firewall — interface match instead of IPv4 CIDR in ip46tables
The mesh-only accept rules used 'ip46tables ... -s 100.x/16'. ip46tables
runs every rule through iptables AND ip6tables; ip6tables cannot parse an
IPv4 CIDR and aborts with 'host/network not found', failing the whole
firewall.service (status 2).

Consequence beyond the unit failure: the firewall-start script aborted at
the first such rule, so the trailing default-reject rules were never
applied — the input filter was effectively OPEN (only SSH/established
rules had been added). This also explains why the mesh services were
reachable although the previous 100.64.0.0/16 source rule never matched
any peer.

Fix: match on the NetBird interface (-i wt0) instead of a source range —
family-agnostic, survives NetBird range changes, and matches the idiom
the generated script already uses for NetBird service ports. Applied to
ai-memory, hermes-dashboard and t3code rules (add + stop-commands).

After deploying: firewall.service completes, default-reject applies, and
49374/9119/8642/3773 become reachable from the mesh ONLY (previously
open to everyone). Anything that silently relied on the open filter will
start failing — that is the intended posture.
2026-10-31 13:17:42 +01:00
m3tam3re 4e6a193d00 Merge pull request 'feat(m3-hermes): T3 Code cockpit — t3 serve systemd service, mesh-only' (#26) from feat/t3code-cockpit into master
Reviewed-on: #26
2026-10-31 12:12:53 +01:00
m3ta-chiron 275546f0ee fix(t3code): drop gateway symlink — subscription login per harness
Subscription auth (Claude Code, OpenCode) must live in each harness's own
credential store; providers do not allow routing subscriptions through
other tools. The keyless m3ta-gateway stays herdr-worker-only. Both
harnesses now login interactively once after deploy (see module header).
2026-10-31 12:12:06 +01:00
m3ta-chiron c310ce57f4 feat(m3-hermes): T3 Code cockpit — t3 serve systemd service, mesh-only
Three-lane agent setup (interactive cockpit / autonomous workers / Hermes
control lane): T3 Code server runs on m3-hermes as a systemd service under
the m3tam3re user, reachable only from the NetBird mesh (direct pairing,
no T3 Connect cloud relay).

- hosts/m3-hermes/services/t3code.nix: t3 serve on port 3773 (port
  registry), User=m3tam3re, keyless m3ta-gateway opencode config for
  harnesses, claude-code/opencode2 in service PATH
- ports.nix: t3code = 3773
- fix netbirdRange in ai-memory.nix + hermes-dashboard.nix: the fleet
  mesh actually runs in 100.81.0.0/16 (wt0 kernel route), the previous
  100.64.0.0/16 rules never matched any real peer

One-time steps after deploy (documented in the module header):
sudo -u m3tam3re claude auth login; t3 pair for client devices.
2026-10-31 11:18:49 +01:00
m3ta-chiron e965490e66 chore: flake update 2026-10-31 10:59:27 +01:00
m3tam3reandClaude Fable 5.1 1ca2bf0b94 fix(m3-hermes): restart ai-memory when its secret changes
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 14:24:51 +01:00
m3tam3reandClaude Fable 5.1 162f12814a chore(ai-memory): consolidate with glm-5-turbo
GLM-5.3 spent the structured-call output budget on reasoning and got
truncated (finish_reason=length) on every profile classification.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 14:23:45 +01:00
m3tam3reandClaude Fable 5.1 a45e3e184b fix(m3-hermes): seed ai-memory hook credential for Hermes
The native hook command reads <data_dir>/auth-token, not the config's
bearer_token_file; without it every Hermes event was spooled with a 401.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 14:02:31 +01:00
m3tam3reandClaude Fable 5.1 c2601d5e70 chore(ai-memory): drop one-shot initial root password from server secret
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 13:56:13 +01:00
m3ta-chiron 3276020422 Merge feat/ai-memory: central ai-memory server, Hermes wiring, kratos client 2026-10-25 13:55:25 +01:00
m3tam3reandClaude Fable 5.1 3ce4eb74bd chore: bump m3ta-home (session-aware Claude MCP bridge)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 13:36:08 +01:00
m3tam3reandClaude Fable 5.1 919ea49a1e chore: bump m3ta-home (ai-memory client module)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 13:31:55 +01:00
m3tam3reandClaude Fable 5.1 f142cc0721 feat(ai-memory): central agent memory server on m3-hermes
Server: services.ai-memory (upstream NixOS module, llm-agents build) on
m3-hermes, bound to the Netbird range, LLM consolidation via z.ai GLM,
one global cross-project profile, auto-improve proposals gated behind
approval. Traefik on m3-atlas publishes it as memory.m3ta.dev.

Clients: per-host aim_ keys (user "sascha", labels kratos / hermes /
az-lt-nix) as agenix secrets. m3-kratos enables m3ta-home's
coding.aiMemory with the AZ checkouts routed to the "az" workspace.

Hermes: lifecycle hooks, MCP bridge and skills wired declaratively, a
home-workspace marker ("home"/"assistant"), and Honcho replaced by the
built-in notes so ai-memory is the single shared memory.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-25 13:01:05 +01:00
34 changed files with 831 additions and 159 deletions

No files matched your search

+7
View File
@@ -71,3 +71,10 @@ bd.db
# They would override fork protection in .git/info/exclude.
# Config files (metadata.json, config.yaml) are tracked by git by default
# since no pattern above ignores them.
# Added by bd (missing required patterns)
*.gate.lock*
last_pull
proxieddb/
dolt-server-config.yaml
proxied_server_client_info.json
+2 -1
View File
@@ -53,4 +53,5 @@
# - github.org
# - github.repo
sync.remote: "git+ssh://gitea@code.m3ta.dev/m3tam3re/nixos-config.git"
sync:
remote: "git+ssh://gitea@code.m3ta.dev/m3tam3re/nixos-config.git"
+46 -11
View File
@@ -1,24 +1,59 @@
#!/usr/bin/env sh
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
# This section is managed by beads. Do not remove these markers.
if command -v bd >/dev/null 2>&1; then
export BD_GIT_HOOK=1
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
if command -v timeout >/dev/null 2>&1; then
timeout "$_bd_timeout" bd hooks run post-checkout "$@"
case "$_bd_timeout" in
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
*[1-9]*) _bd_timeout_invalid=0 ;;
*) _bd_timeout_invalid=1 ;;
esac
if [ "$_bd_timeout_invalid" -eq 1 ]; then
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
_bd_timeout=300
fi
_bd_timeout_backend=none
_bd_timeout_command=
for _bd_timeout_candidate in timeout gtimeout; do
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
case "$_bd_timeout_version" in
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
esac
fi
fi
done
if [ -n "$_bd_timeout_command" ]; then
_bd_timeout_backend=coreutils
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run post-checkout "$@"; then
_bd_exit=0
else
_bd_exit=$?
if [ $_bd_exit -eq 124 ]; then
fi
elif command -v perl >/dev/null 2>&1; then
_bd_timeout_backend=perl
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run post-checkout "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
else
echo >&2 "beads: hook 'post-checkout' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
if bd hooks run post-checkout "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
fi
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
echo >&2 "beads: hook 'post-checkout' timed out after ${_bd_timeout}s — continuing without beads"
_bd_exit=0
fi
else
bd hooks run post-checkout "$@"
_bd_exit=$?
fi
if [ $_bd_exit -eq 3 ]; then
if [ "$_bd_exit" -eq 3 ]; then
echo >&2 "beads: database not initialized — skipping hook 'post-checkout'"
_bd_exit=0
fi
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
fi
# --- END BEADS INTEGRATION v1.0.3 ---
# --- END BEADS INTEGRATION v1.3.2 ---
+46 -11
View File
@@ -1,24 +1,59 @@
#!/usr/bin/env sh
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
# This section is managed by beads. Do not remove these markers.
if command -v bd >/dev/null 2>&1; then
export BD_GIT_HOOK=1
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
if command -v timeout >/dev/null 2>&1; then
timeout "$_bd_timeout" bd hooks run post-merge "$@"
case "$_bd_timeout" in
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
*[1-9]*) _bd_timeout_invalid=0 ;;
*) _bd_timeout_invalid=1 ;;
esac
if [ "$_bd_timeout_invalid" -eq 1 ]; then
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
_bd_timeout=300
fi
_bd_timeout_backend=none
_bd_timeout_command=
for _bd_timeout_candidate in timeout gtimeout; do
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
case "$_bd_timeout_version" in
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
esac
fi
fi
done
if [ -n "$_bd_timeout_command" ]; then
_bd_timeout_backend=coreutils
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run post-merge "$@"; then
_bd_exit=0
else
_bd_exit=$?
if [ $_bd_exit -eq 124 ]; then
fi
elif command -v perl >/dev/null 2>&1; then
_bd_timeout_backend=perl
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run post-merge "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
else
echo >&2 "beads: hook 'post-merge' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
if bd hooks run post-merge "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
fi
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
echo >&2 "beads: hook 'post-merge' timed out after ${_bd_timeout}s — continuing without beads"
_bd_exit=0
fi
else
bd hooks run post-merge "$@"
_bd_exit=$?
fi
if [ $_bd_exit -eq 3 ]; then
if [ "$_bd_exit" -eq 3 ]; then
echo >&2 "beads: database not initialized — skipping hook 'post-merge'"
_bd_exit=0
fi
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
fi
# --- END BEADS INTEGRATION v1.0.3 ---
# --- END BEADS INTEGRATION v1.3.2 ---
+46 -11
View File
@@ -1,24 +1,59 @@
#!/usr/bin/env sh
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
# This section is managed by beads. Do not remove these markers.
if command -v bd >/dev/null 2>&1; then
export BD_GIT_HOOK=1
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
if command -v timeout >/dev/null 2>&1; then
timeout "$_bd_timeout" bd hooks run pre-commit "$@"
case "$_bd_timeout" in
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
*[1-9]*) _bd_timeout_invalid=0 ;;
*) _bd_timeout_invalid=1 ;;
esac
if [ "$_bd_timeout_invalid" -eq 1 ]; then
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
_bd_timeout=300
fi
_bd_timeout_backend=none
_bd_timeout_command=
for _bd_timeout_candidate in timeout gtimeout; do
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
case "$_bd_timeout_version" in
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
esac
fi
fi
done
if [ -n "$_bd_timeout_command" ]; then
_bd_timeout_backend=coreutils
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run pre-commit "$@"; then
_bd_exit=0
else
_bd_exit=$?
if [ $_bd_exit -eq 124 ]; then
fi
elif command -v perl >/dev/null 2>&1; then
_bd_timeout_backend=perl
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run pre-commit "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
else
echo >&2 "beads: hook 'pre-commit' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
if bd hooks run pre-commit "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
fi
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
echo >&2 "beads: hook 'pre-commit' timed out after ${_bd_timeout}s — continuing without beads"
_bd_exit=0
fi
else
bd hooks run pre-commit "$@"
_bd_exit=$?
fi
if [ $_bd_exit -eq 3 ]; then
if [ "$_bd_exit" -eq 3 ]; then
echo >&2 "beads: database not initialized — skipping hook 'pre-commit'"
_bd_exit=0
fi
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
fi
# --- END BEADS INTEGRATION v1.0.3 ---
# --- END BEADS INTEGRATION v1.3.2 ---
+46 -11
View File
@@ -1,24 +1,59 @@
#!/usr/bin/env sh
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
# This section is managed by beads. Do not remove these markers.
if command -v bd >/dev/null 2>&1; then
export BD_GIT_HOOK=1
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
if command -v timeout >/dev/null 2>&1; then
timeout "$_bd_timeout" bd hooks run pre-push "$@"
case "$_bd_timeout" in
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
*[1-9]*) _bd_timeout_invalid=0 ;;
*) _bd_timeout_invalid=1 ;;
esac
if [ "$_bd_timeout_invalid" -eq 1 ]; then
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
_bd_timeout=300
fi
_bd_timeout_backend=none
_bd_timeout_command=
for _bd_timeout_candidate in timeout gtimeout; do
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
case "$_bd_timeout_version" in
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
esac
fi
fi
done
if [ -n "$_bd_timeout_command" ]; then
_bd_timeout_backend=coreutils
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run pre-push "$@"; then
_bd_exit=0
else
_bd_exit=$?
if [ $_bd_exit -eq 124 ]; then
fi
elif command -v perl >/dev/null 2>&1; then
_bd_timeout_backend=perl
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run pre-push "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
else
echo >&2 "beads: hook 'pre-push' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
if bd hooks run pre-push "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
fi
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
echo >&2 "beads: hook 'pre-push' timed out after ${_bd_timeout}s — continuing without beads"
_bd_exit=0
fi
else
bd hooks run pre-push "$@"
_bd_exit=$?
fi
if [ $_bd_exit -eq 3 ]; then
if [ "$_bd_exit" -eq 3 ]; then
echo >&2 "beads: database not initialized — skipping hook 'pre-push'"
_bd_exit=0
fi
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
fi
# --- END BEADS INTEGRATION v1.0.3 ---
# --- END BEADS INTEGRATION v1.3.2 ---
+46 -11
View File
@@ -1,24 +1,59 @@
#!/usr/bin/env sh
# --- BEGIN BEADS INTEGRATION v1.0.3 ---
# --- BEGIN BEADS INTEGRATION v1.3.2 ---
# This section is managed by beads. Do not remove these markers.
if command -v bd >/dev/null 2>&1; then
export BD_GIT_HOOK=1
_bd_timeout=${BEADS_HOOK_TIMEOUT:-300}
if command -v timeout >/dev/null 2>&1; then
timeout "$_bd_timeout" bd hooks run prepare-commit-msg "$@"
case "$_bd_timeout" in
*[!0-9]*|'') _bd_timeout_invalid=1 ;;
*[1-9]*) _bd_timeout_invalid=0 ;;
*) _bd_timeout_invalid=1 ;;
esac
if [ "$_bd_timeout_invalid" -eq 1 ]; then
echo >&2 "beads: invalid BEADS_HOOK_TIMEOUT; using 300 seconds"
_bd_timeout=300
fi
_bd_timeout_backend=none
_bd_timeout_command=
for _bd_timeout_candidate in timeout gtimeout; do
if command -v "$_bd_timeout_candidate" >/dev/null 2>&1; then
if _bd_timeout_version="$("$_bd_timeout_candidate" --version 2>/dev/null)"; then
case "$_bd_timeout_version" in
"timeout (GNU coreutils) "*) _bd_timeout_command=$_bd_timeout_candidate; break ;;
esac
fi
fi
done
if [ -n "$_bd_timeout_command" ]; then
_bd_timeout_backend=coreutils
if "$_bd_timeout_command" -- "$_bd_timeout" bd hooks run prepare-commit-msg "$@"; then
_bd_exit=0
else
_bd_exit=$?
if [ $_bd_exit -eq 124 ]; then
fi
elif command -v perl >/dev/null 2>&1; then
_bd_timeout_backend=perl
if perl -e 'alarm shift; exec @ARGV' -- "$_bd_timeout" bd hooks run prepare-commit-msg "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
else
echo >&2 "beads: hook 'prepare-commit-msg' running without timeout; install coreutils or perl to enable BEADS_HOOK_TIMEOUT"
if bd hooks run prepare-commit-msg "$@"; then
_bd_exit=0
else
_bd_exit=$?
fi
fi
if { [ "$_bd_timeout_backend" = coreutils ] && [ "$_bd_exit" -eq 124 ]; } || { [ "$_bd_timeout_backend" = perl ] && [ "$_bd_exit" -eq 142 ]; }; then
echo >&2 "beads: hook 'prepare-commit-msg' timed out after ${_bd_timeout}s — continuing without beads"
_bd_exit=0
fi
else
bd hooks run prepare-commit-msg "$@"
_bd_exit=$?
fi
if [ $_bd_exit -eq 3 ]; then
if [ "$_bd_exit" -eq 3 ]; then
echo >&2 "beads: database not initialized — skipping hook 'prepare-commit-msg'"
_bd_exit=0
fi
if [ $_bd_exit -ne 0 ]; then exit $_bd_exit; fi
if [ "$_bd_exit" -ne 0 ]; then exit "$_bd_exit"; fi
fi
# --- END BEADS INTEGRATION v1.0.3 ---
# --- END BEADS INTEGRATION v1.3.2 ---
+1
View File
@@ -46,6 +46,7 @@ CLAUDE.md
.dolt/
*.db
.beads-credential-key
.beads.gate.lock
# --- babysitter managed ---
.a5c/creds.env
Generated
+162 -83
View File
@@ -86,6 +86,28 @@
"url": "https://code.m3ta.dev/m3tam3re/AGENTS"
}
},
"ai-memory": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": [
"nixpkgs"
],
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1793681603,
"narHash": "sha256-1tMfhG7z4CQnHDPrnCYHxjI1h+ttU2ggAnjplZcz63E=",
"owner": "akitaonrails",
"repo": "ai-memory",
"rev": "4921bb93110a00602147a8024162f716c2e5d969",
"type": "github"
},
"original": {
"owner": "akitaonrails",
"repo": "ai-memory",
"type": "github"
}
},
"base16-schemes": {
"flake": false,
"locked": {
@@ -204,7 +226,7 @@
"m3ta-nixpkgs",
"nixpkgs"
],
"rust-overlay": "rust-overlay",
"rust-overlay": "rust-overlay_2",
"treefmt-nix": "treefmt-nix_2"
},
"locked": {
@@ -227,15 +249,15 @@
"m3ta-nixpkgs",
"nixpkgs"
],
"rust-overlay": "rust-overlay_2",
"rust-overlay": "rust-overlay_3",
"treefmt-nix": "treefmt-nix_3"
},
"locked": {
"lastModified": 1792485075,
"narHash": "sha256-o04WvscL+MhtarpbluifQZLA6lIP3B0g6NDUWaM/asc=",
"lastModified": 1793694265,
"narHash": "sha256-U0LOK1W4jopvSKjM1gDIOutEUuz6vZZJwPTUnVaT8KA=",
"owner": "mulatta",
"repo": "buzz.nix",
"rev": "22a9f566d21317181b4b40601570e81a02ff2d8c",
"rev": "44d468360b22d94a11ba55c3d5c4c4c3f7620725",
"type": "github"
},
"original": {
@@ -251,14 +273,14 @@
"nixpkgs"
],
"stable": "stable",
"systems": "systems"
"systems": "systems_2"
},
"locked": {
"lastModified": 1791553562,
"narHash": "sha256-jp+gxgnCdMhpBxxBnOoHW5fRVc+C5rKCFHsP/afoh3w=",
"lastModified": 1793370552,
"narHash": "sha256-Dv4jEQeqvPpicC3H8mLTyqtTgXp23p4HPiCMKqKWXFA=",
"owner": "nix-community",
"repo": "colmena",
"rev": "e269669b798a361a521029d5d15e289124a15038",
"rev": "fc7d67ed1cd52af91415f92ba92b543bc7245f25",
"type": "github"
},
"original": {
@@ -335,11 +357,11 @@
]
},
"locked": {
"lastModified": 1792649357,
"narHash": "sha256-rs7tJ0CXejdadqy7LmcsFtsocx1qORmXMYfu1/z2AJM=",
"lastModified": 1792981560,
"narHash": "sha256-wTMsaavNJwgGOX991oIa6xgDWHwJnWdi9bwwQsjGkAg=",
"owner": "AvengeMedia",
"repo": "dms-plugin-registry",
"rev": "39085a4579bb4b030492291d615542afc5a55a29",
"rev": "cb788da6d2e6cf20205784c0baca041e48183612",
"type": "github"
},
"original": {
@@ -393,11 +415,11 @@
]
},
"locked": {
"lastModified": 1790898470,
"narHash": "sha256-zTwuwezD0w3hpga6a6P8emidzAZFyWqlNeRBlpWOOl8=",
"lastModified": 1793576659,
"narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "024633cd702b10285db5cb19b40ad48d2399ba60",
"rev": "ea2630b7470978622c7689a1ff75d2b389175399",
"type": "github"
},
"original": {
@@ -471,6 +493,25 @@
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
}
},
"hermes-agent": {
"inputs": {
"flake-parts": "flake-parts",
@@ -482,16 +523,16 @@
"uv2nix": "uv2nix"
},
"locked": {
"lastModified": 1790244527,
"narHash": "sha256-y6NaoG+HCeMPhxRsBXrRFef4hp3FF1svSPNKpI6Xz/E=",
"lastModified": 1792722267,
"narHash": "sha256-n6HfR4dydeITXx+ITkQr0l8LiKkUhZPVBvJu2ZwQxdk=",
"owner": "NousResearch",
"repo": "hermes-agent",
"rev": "f97608f178d1ffeca59860195ab7da295f7c8e5f",
"rev": "bf0203a794a07aac3ff764972ab9087baa4e4f4e",
"type": "github"
},
"original": {
"owner": "NousResearch",
"ref": "v2026.9.24",
"ref": "v0.22.5",
"repo": "hermes-agent",
"type": "github"
}
@@ -552,11 +593,11 @@
]
},
"locked": {
"lastModified": 1792605213,
"narHash": "sha256-J73EBU30r2hXvHCcBtaigQDAIu/GGPYk1nc6P9THcmg=",
"lastModified": 1793193205,
"narHash": "sha256-X6xa6sGA7RnJQuZGbFMC+K+KToWAlBDCCjJXfTwEPsw=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "ab97a5d09e0f2aa7339cfd35ec5824fd6653e27c",
"rev": "095fef2f265c3c0da4fe315efba8f8a04495ab34",
"type": "github"
},
"original": {
@@ -595,11 +636,11 @@
]
},
"locked": {
"lastModified": 1792605213,
"narHash": "sha256-J73EBU30r2hXvHCcBtaigQDAIu/GGPYk1nc6P9THcmg=",
"lastModified": 1792896866,
"narHash": "sha256-/0tELNnhdSnP+bHSdWiEe6KpfSwi6WrTnT9cm/jNkjA=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "ab97a5d09e0f2aa7339cfd35ec5824fd6653e27c",
"rev": "c216bf5a1f173b0481bd5c8c489ebe5595ecc68c",
"type": "github"
},
"original": {
@@ -614,7 +655,7 @@
"rose-pine-hyprcursor",
"nixpkgs"
],
"systems": "systems_3"
"systems": "systems_4"
},
"locked": {
"lastModified": 1709914708,
@@ -635,15 +676,15 @@
"bun2nix": "bun2nix",
"flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_3",
"systems": "systems_2",
"systems": "systems_3",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1792827236,
"narHash": "sha256-IZOPKCAPqp4C6U1qQNdOlilP3wl7PD3T81/j8ygziH0=",
"lastModified": 1793708775,
"narHash": "sha256-TCztCGO7C7rgg3S4JscvKm4lA5b1R3zy5MPKfYirOHI=",
"owner": "numtide",
"repo": "llm-agents.nix",
"rev": "9934bc184f4f1e2ad253e64e6739016aa4dead07",
"rev": "a854ddf4456f5fd67474e2d844cb4a29c32702d0",
"type": "github"
},
"original": {
@@ -668,11 +709,11 @@
"nur": "nur"
},
"locked": {
"lastModified": 1792827335,
"narHash": "sha256-cvsBaKhgZtz8yWw+DV8sPo4vtiU42cnFeAq/G63Qr0k=",
"lastModified": 1793725748,
"narHash": "sha256-+fHuAgYQc0DcUdaZcBwl/b+S1NXPGwlztJgqEW8cCIY=",
"ref": "refs/heads/master",
"rev": "d608fb29b19f616ecb54e4ff3e3d68422adc1821",
"revCount": 159,
"rev": "4e46e08e4d5364945128066a4b90bbcfd331ff88",
"revCount": 181,
"type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/m3ta-home"
},
@@ -694,11 +735,11 @@
"opencode": "opencode"
},
"locked": {
"lastModified": 1792655537,
"narHash": "sha256-EKhK6UoEpp5WOE4WLphgmil3WHsGV5k8PBtXMnBTsIQ=",
"lastModified": 1792997202,
"narHash": "sha256-tHNAo+Yc/7oUzxvnkAnximNt4MPRy2sW0tQAZ1Jq6oo=",
"ref": "refs/heads/master",
"rev": "ffd27fba207bca9236e2782d6da893b543332a52",
"revCount": 408,
"rev": "72695e2ef0b4f476ea28979dfdcd5a659d9496ce",
"revCount": 411,
"type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/nixpkgs"
},
@@ -719,11 +760,11 @@
"opencode": "opencode_2"
},
"locked": {
"lastModified": 1792657078,
"narHash": "sha256-JPnFfj9FT55SdjXICFCEOQwaXfxv0YPqlGdCOmHXpzo=",
"lastModified": 1793731645,
"narHash": "sha256-d+/UEmzF9xGXBDILszp6ZpQwV9P5SCUaboxsOvKSM2s=",
"ref": "refs/heads/master",
"rev": "239450162efbe04e0a5ab2804daa197407d97690",
"revCount": 409,
"rev": "f2b7a0eab045cf91961a9006152b3c6fd9da0c37",
"revCount": 423,
"type": "git",
"url": "ssh://gitea@code.m3ta.dev/m3tam3re/nixpkgs"
},
@@ -889,11 +930,11 @@
},
"nixpkgs-master_2": {
"locked": {
"lastModified": 1792653584,
"narHash": "sha256-vniEjRZ2skWqpreoaSJt7MCXDc/uZI/+ZDdLSa1/h6I=",
"lastModified": 1793722985,
"narHash": "sha256-LG9Fc7wXwhm67Mz999kX1O/gUPeNGj9ThL+b7diR2js=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6c21ae394d8839a9d4cad6e2fb2f312ebef0447b",
"rev": "99faf641a2977fdf121860f9e3369f148807ccca",
"type": "github"
},
"original": {
@@ -905,11 +946,11 @@
},
"nixpkgs-master_3": {
"locked": {
"lastModified": 1792659130,
"narHash": "sha256-O8Eu5JrtHKJqsA0a4suXwgEcrK4aVHsfrRHzbLDTB74=",
"lastModified": 1793722985,
"narHash": "sha256-LG9Fc7wXwhm67Mz999kX1O/gUPeNGj9ThL+b7diR2js=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "b6e931d843e890e1e7aab5d3a45e3eecbb167da5",
"rev": "99faf641a2977fdf121860f9e3369f148807ccca",
"type": "github"
},
"original": {
@@ -921,11 +962,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1792615934,
"narHash": "sha256-MlvRfa1O5Cqc2/a+gG+l9TSuowEoCKCmrJ1d9oAVm0I=",
"lastModified": 1793633738,
"narHash": "sha256-tItrb9M8eYA6WhFgmT9tpGKueri3+wRuVA952o/2xSU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "da6dc0e7b26060f2f71ce3ef7088fb56ee44fa36",
"rev": "7dcdd87373d72e7a2173e4db02e20d3d7f495cfd",
"type": "github"
},
"original": {
@@ -937,11 +978,11 @@
},
"nixpkgs_10": {
"locked": {
"lastModified": 1792506237,
"narHash": "sha256-Q/8KLB6jNfpaUN1HAedE/u/Et9feE/zYSsutBLKrCFk=",
"lastModified": 1793706278,
"narHash": "sha256-CE1GD35mj//AKYuLNbQJZDelQYWzef5GBpQno9uyNP0=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5adc50831c259f87faeb09ddf930d43597197473",
"rev": "ea9e3ef341e11c193537f674f821a99f9f436729",
"type": "github"
},
"original": {
@@ -985,11 +1026,11 @@
},
"nixpkgs_3": {
"locked": {
"lastModified": 1792116957,
"narHash": "sha256-EjZqHKObBfIOeHZnMRVV87HB3pPq/WBkmRJWyFxmZu8=",
"lastModified": 1793345420,
"narHash": "sha256-e/yiZ31gXRROBDcnOtT3YwDQ73NVG9Cepccbt86LIn8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f20cd90e28fe0403873f473b29e42662cd86e8c4",
"rev": "885ba4d038f10c3d17d7a92e8c3cc185b99c9158",
"type": "github"
},
"original": {
@@ -1049,11 +1090,11 @@
},
"nixpkgs_7": {
"locked": {
"lastModified": 1792502884,
"narHash": "sha256-IoNisKcGbUjdd45qCqywGMCYmZ5EnkxezvLII0FWwNA=",
"lastModified": 1792773339,
"narHash": "sha256-rZLrzrC6i+jnTAlvPZHogKDulY7WWDEv9hJeHieO7Zw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "02c087f3fe673c9e317f206a627cb6b910336dbe",
"rev": "3ec636362e1816bc2f0888fa0fa2c69f1bc9e504",
"type": "github"
},
"original": {
@@ -1144,11 +1185,11 @@
"nixpkgs": "nixpkgs_7"
},
"locked": {
"lastModified": 1792654632,
"narHash": "sha256-OSiP+J6DRaKBUgIJrk0PCT0hDa8WaRPmjHWYZ8AtQWs=",
"lastModified": 1792997485,
"narHash": "sha256-f4HoNZ30TvZgK/uaZAxTCGeV3XDW2DPdcuiM1azihKw=",
"owner": "nix-community",
"repo": "NUR",
"rev": "b4e5f7d5440209cd144830fc996c647190fd715a",
"rev": "01c200726e3d527b5101b440be0ab19a7f74cba1",
"type": "github"
},
"original": {
@@ -1165,11 +1206,11 @@
]
},
"locked": {
"lastModified": 1792659131,
"narHash": "sha256-GaqMC/GkKEUzX4XlVnCxhEQfR3wicT0XlpRhfDsGm0c=",
"lastModified": 1793722696,
"narHash": "sha256-Fn9EY9BbSoUZehtTyAMCDwlNq9jzCXT3iUCYcsjLvAI=",
"owner": "nix-community",
"repo": "NUR",
"rev": "b1e5d9527e6d663d09cb082d44ac834155798e69",
"rev": "3571a9d461119a501d9861715c4862f25f51b285",
"type": "github"
},
"original": {
@@ -1202,11 +1243,11 @@
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1792644899,
"narHash": "sha256-ub192yT1SwxVyf2DHKW34xHJnL/LXRi2jm1IFyZMkqQ=",
"lastModified": 1793723922,
"narHash": "sha256-0d9go7harq36rwMOSqVhOnnd6fD9FEJ9bvx9m8/S37Q=",
"owner": "anomalyco",
"repo": "opencode",
"rev": "c93aaae37157d785f76a8e9a9243a6560e286468",
"rev": "8b038f672b0ee520d3ab6bc1014fc3eddba5961c",
"type": "github"
},
"original": {
@@ -1323,6 +1364,7 @@
"root": {
"inputs": {
"agenix": "agenix",
"ai-memory": "ai-memory",
"colmena": "colmena",
"disko": "disko",
"hermes-agent": "hermes-agent",
@@ -1360,6 +1402,28 @@
}
},
"rust-overlay": {
"inputs": {
"nixpkgs": [
"ai-memory",
"nixpkgs"
]
},
"locked": {
"lastModified": 1787108576,
"narHash": "sha256-WLhxXPMCzbeufsDZxdzkurLGBq74GX+JgLX8fFy6HZs=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "99607a06c2ea1290cd3258c11d1416dde9201f94",
"type": "github"
},
"original": {
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "99607a06c2ea1290cd3258c11d1416dde9201f94",
"type": "github"
}
},
"rust-overlay_2": {
"inputs": {
"nixpkgs": [
"m3ta-home",
@@ -1382,7 +1446,7 @@
"type": "github"
}
},
"rust-overlay_2": {
"rust-overlay_3": {
"inputs": {
"nixpkgs": [
"m3ta-nixpkgs",
@@ -1391,11 +1455,11 @@
]
},
"locked": {
"lastModified": 1792219666,
"narHash": "sha256-RMO08tKD+hFIL5ryWi85VY4aHE5oIpdV1h4kVFctOkw=",
"lastModified": 1793434469,
"narHash": "sha256-+sgVNI2c67di+XIeMaz5KSei4T65kX68s5Nl0E5Gzbc=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "a110337465cfb76e3806b81b9db3094c3e6e770a",
"rev": "6ecf534a7c16e7c969f26838fdd8c93597ae93f3",
"type": "github"
},
"original": {
@@ -1406,11 +1470,11 @@
},
"stable": {
"locked": {
"lastModified": 1791219833,
"narHash": "sha256-q8KNN9Zs/nau7Cc8+f5ZGJeMXmCQqm5+bgy5m/uYxmw=",
"lastModified": 1793044983,
"narHash": "sha256-TMADWku9ye40AQKGMdSoCpByfqaL7kbO+o8E46Q7CLQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1f623a1582190fa3ba3f5cea25aba925055d43eb",
"rev": "89844ad35df40e876cb6d0a3a319fbf65ea4b984",
"type": "github"
},
"original": {
@@ -1421,6 +1485,21 @@
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"systems_2": {
"locked": {
"lastModified": 1776166891,
"narHash": "sha256-bI8yrEGjrohR5hkQox7UrxDH7XqrYMwI8SL/LrJ1+S8=",
@@ -1435,7 +1514,7 @@
"type": "github"
}
},
"systems_2": {
"systems_3": {
"locked": {
"lastModified": 1791244623,
"narHash": "sha256-uuanbkFk8a313Zfrxdcz8Us/yQtaxNnKJtX8v0ZPpd8=",
@@ -1450,7 +1529,7 @@
"type": "github"
}
},
"systems_3": {
"systems_4": {
"locked": {
"lastModified": 1689347949,
"narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=",
@@ -1465,7 +1544,7 @@
"type": "github"
}
},
"systems_4": {
"systems_5": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@@ -1548,7 +1627,7 @@
},
"utils": {
"inputs": {
"systems": "systems_4"
"systems": "systems_5"
},
"locked": {
"lastModified": 1710146030,
@@ -1576,11 +1655,11 @@
]
},
"locked": {
"lastModified": 1785277507,
"narHash": "sha256-9Tq3UDX2hD/aveW/HvkBlAmEwJTOlY5HQXJM+L5BGmE=",
"lastModified": 1792151315,
"narHash": "sha256-PMtgvHuGijoIAtPtrBm7kJOI6fxzX4LYPAIK+QVGY+Y=",
"owner": "pyproject-nix",
"repo": "uv2nix",
"rev": "5a836d395cbf5fc22670eb98dd4aa4fc4d406977",
"rev": "7aba73a3d85454f1118f8cf9de97979b4d26bcac",
"type": "github"
},
"original": {
+7 -3
View File
@@ -66,7 +66,12 @@
inputs.nixpkgs.follows = "nixpkgs";
};
hermes-agent.url = "github:NousResearch/hermes-agent/v2026.9.24";
hermes-agent.url = "github:NousResearch/hermes-agent/v0.22.5";
ai-memory = {
url = "github:akitaonrails/ai-memory";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
@@ -82,10 +87,8 @@
inherit (self) outputs;
systems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
allOverlays = import ./overlays {inherit inputs outputs;};
@@ -119,6 +122,7 @@
agenix.nixosModules.default
m3ta-nixpkgs.nixosModules.default
inputs.hermes-agent.nixosModules.default
inputs.ai-memory.nixosModules.default
];
};
};
+3
View File
@@ -13,6 +13,7 @@
./ports.nix
./users
inputs.home-manager.nixosModules.home-manager
inputs.m3ta-home.nixosModules.t3code
];
environment.pathsToLink = ["/share/xdg-desktop-portal" "/share/applications"];
@@ -49,6 +50,8 @@
# with allowUnfree). Do NOT flatten to top-level attrs — see
# overlays/default.nix.
inputs.llm-agents.overlays.shared-nixpkgs
# Wraps pkgs.llm-agents.t3code* with the agents' m3ta-chiron identity.
inputs.m3ta-home.overlays.t3code-agent-identity
# You can also add overlays exported from other flakes:
# neovim-nightly-overlay.overlays.default
+4
View File
@@ -44,6 +44,10 @@
# Agent infrastructure
hermes-api = 8642;
hermes-dashboard = 9119;
ai-memory = 49374;
# Agent cockpit
t3code = 3773;
# Home automation
homarr = 7575;
+8 -3
View File
@@ -74,7 +74,6 @@
# Full desktop workstation
base = {
shell = {
fish.enable = true;
nushell.enable = true;
starship.enable = true;
};
@@ -108,6 +107,14 @@
};
lsp.enable = true;
packages.enable = true;
aiMemory = {
enable = hostname == "m3-kratos";
# Work checkouts on the private desktop go to the work workspace.
workspaceDirs = {
"p/AZ" = "az";
"p/AZ-INTEC" = "az";
};
};
languages = {
python.enable = true;
javascript.enable = true;
@@ -134,7 +141,6 @@
# Portable laptop — desktop without gaming, no Hyprland
base = {
shell = {
fish.enable = true;
nushell.enable = true;
starship.enable = true;
};
@@ -199,7 +205,6 @@
# m3-helios, m3-hermes, m3-aether — minimal server
base = {
shell = {
fish.enable = true;
starship.enable = true;
};
cliTools = {
-1
View File
@@ -4,7 +4,6 @@
# Add any missing dynamic libraries for unpackaged programs
# here, NOT in environment.systemPackages
];
programs.fish.enable = true;
programs.mosh.enable = true;
programs.nh = {
enable = true;
+19
View File
@@ -0,0 +1,19 @@
{
# Traefik configuration for ai-memory (m3-hermes over Netbird)
services.traefik.dynamicConfigOptions.http = {
services.ai-memory.loadBalancer.servers = [
{
url = "http://100.81.231.152:49374";
}
];
routers.ai-memory = {
rule = "Host(`memory.m3ta.dev`)";
tls = {
certResolver = "godaddy";
};
service = "ai-memory";
entrypoints = "websecure";
};
};
}
+1
View File
@@ -12,6 +12,7 @@
./postgres.nix
./searx.nix
./traefik.nix
./ai-memory.nix
./vaultwarden.nix
./wastebin.nix
];
-1
View File
@@ -4,7 +4,6 @@
# Add any missing dynamic libraries for unpackaged programs
# here, NOT in environment.systemPackages
];
programs.fish.enable = true;
programs.nh = {
enable = true;
clean.enable = true;
-1
View File
@@ -2,7 +2,6 @@
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [];
programs.mosh.enable = true;
programs.fish.enable = true;
programs.nh = {
enable = true;
clean.enable = true;
+11
View File
@@ -1,6 +1,10 @@
{
age = {
secrets = {
agent-gitea-token-m3ta = {
file = ../../secrets/agent-gitea-token-m3ta.age;
owner = "m3tam3re";
};
hermes-env = {
file = ../../secrets/hermes-env.age;
};
@@ -10,6 +14,13 @@
hermes-api-server-key = {
file = ../../secrets/hermes-api-server-key.age;
};
ai-memory-server-env = {
file = ../../secrets/ai-memory-server-env.age;
};
ai-memory-hermes-token = {
file = ../../secrets/ai-memory-hermes-token.age;
owner = "hermes";
};
};
};
}
+55
View File
@@ -0,0 +1,55 @@
{
config,
pkgs,
...
}: let
# Mesh-only via interface match on wt0 (NetBird) — an IPv4 CIDR in -s
# would abort the ip6tables run of ip46tables and fail the unit.
port = config.m3ta.ports.get "ai-memory";
in {
# ── ai-memory server ──────────────────────────────────────────────────
# Shared agent memory for all hosts (private + work), see
# https://aimemory.sh. Clients: m3ta-home `coding.aiMemory`.
#
# Flow: Agent → memory.m3ta.dev (TLS via m3-atlas Traefik) → Netbird → :${toString port}
# Hermes on this host talks to 127.0.0.1 directly.
services.ai-memory = {
enable = true;
# Same build as the clients (m3ta-home uses llm-agents.ai-memory),
# prebuilt via the numtide cache instead of compiling the flake.
package = pkgs.llm-agents.ai-memory;
bind = "0.0.0.0";
inherit port;
enableWeb = true;
# Root bearer, token pepper, recovery token, cookie/proxy settings and
# the LLM provider key. Never put any of these into `settings`.
ageSecret = "ai-memory-server-env";
settings = {
allowed_hosts = ["memory.m3ta.dev" "localhost" "127.0.0.1" "::1"];
# One operator, several workspaces (private, az, home): keep one
# cross-project profile for all of them. With database users the
# profile is off unless enabled explicitly.
profile = {
enabled = true;
share = "global";
};
# Shared server: auto-improvement proposals wait for approval.
auto_improve.require_approval = true;
};
};
# A changed secret (model, keys, tokens) does not change the unit file, so
# without this the running server keeps the old environment after a switch.
systemd.services.ai-memory.restartTriggers = [config.age.secrets."ai-memory-server-env".file];
networking.firewall = {
extraCommands = ''
# Allow ai-memory only from Netbird mesh VPN
ip46tables -A nixos-fw -p tcp --dport ${toString port} -i wt0 -j nixos-fw-accept
'';
extraStopCommands = ''
ip46tables -D nixos-fw -p tcp --dport ${toString port} -i wt0 -j nixos-fw-accept 2>/dev/null || true
'';
};
}
+2
View File
@@ -3,6 +3,8 @@
./hermes-agent.nix
./herdr-sandbox.nix
./hermes-dashboard.nix
./ai-memory.nix
./netbird.nix
./t3code.nix
];
}
+76 -2
View File
@@ -13,12 +13,48 @@
# Same interpreter env the upstream merge script uses, so no extra
# closure cost — the derivation is shared.
yamlPython = pkgs.python3.withPackages (ps: [ps.pyyaml]);
# ── ai-memory client (server: ./ai-memory.nix, same host) ─────────────
# The MCP bridge reads the bearer from [auth].bearer_token_file in the
# data dir's config.toml; the native `hook` command only looks at
# <data_dir>/auth-token (what `install-hooks --apply` would seed), so that
# file is a symlink to the same secret. Neither config.yaml nor the
# process environment ever carries the token.
aiMemory = "${config.services.ai-memory.package}/bin/ai-memory";
aiMemoryUrl = "http://127.0.0.1:${toString (config.m3ta.ports.get "ai-memory")}";
aiMemoryDataDir = "/var/lib/hermes/.local/share/ai-memory";
aiMemoryHook = event: [
{
command = "${aiMemory} --data-dir ${aiMemoryDataDir} hook --event ${event} --agent hermes --server-url ${aiMemoryUrl}";
timeout = 20;
}
];
in {
virtualisation.docker.enable = true;
systemd.tmpfiles.rules = [
"d /var/lib/hermes/.config 0755 hermes hermes -"
"d /var/lib/hermes/.config/tea 0755 hermes hermes -"
"d /var/lib/hermes/.local 0755 hermes hermes -"
"d /var/lib/hermes/.local/share 0755 hermes hermes -"
"d ${aiMemoryDataDir} 0700 hermes hermes -"
"L+ ${aiMemoryDataDir}/config.toml - - - - ${pkgs.writeText "ai-memory-hermes-config.toml" ''
server_url = "${aiMemoryUrl}"
[auth]
bearer_token_file = "${config.age.secrets."ai-memory-hermes-token".path}"
''}"
"L+ ${aiMemoryDataDir}/auth-token - - - - ${config.age.secrets."ai-memory-hermes-token".path}"
# Scope marker: Hermes reports its process directory as cwd, so every
# assistant session lands in one project of the `home` workspace
# (coding checkouts below $HOME with their own marker still win).
"L+ /var/lib/hermes/.ai-memory.toml - - - - ${pkgs.writeText "ai-memory-hermes-marker.toml" ''
workspace = "home"
project = "assistant"
[capture]
ignore_paths = ["/run/agenix/**", "**/.env*", "/var/lib/hermes/.hermes/auth*", "/var/lib/hermes/.ssh/**"]
''}"
"L+ /var/lib/hermes/.config/tea/yml - - - - ${pkgs.writeText "tea-yml" ''
logins:
- name: m3ta
@@ -39,7 +75,6 @@ in {
# without runtime pip/uv mutation.
extraDependencyGroups = [
"matrix"
"honcho"
"exa"
"edge-tts"
"voice"
@@ -91,6 +126,11 @@ in {
API_SERVER_PORT = toString (config.m3ta.ports.get "hermes-api");
};
mcpServers.ai-memory = {
command = aiMemory;
args = ["mcp-bridge" "--no-session-id" "--server-url" "${aiMemoryUrl}/mcp" "--data-dir" aiMemoryDataDir];
};
# ── Container mode (podman) ──────────────────────────────────────────
container = {
enable = false;
@@ -217,9 +257,23 @@ in {
silence_duration = 3.0;
};
# ── ai-memory hooks ────────────────────────────────────────────────
# From `ai-memory install-hooks --agent hermes` (3.2.2). ai-memory is
# the one shared memory for every agent; Honcho was dropped in favour
# of it (2026-10-25), only Hermes' small built-in notes remain.
hooks_auto_accept = true;
hooks = {
pre_tool_call = aiMemoryHook "pre-tool-use";
post_tool_call = aiMemoryHook "post-tool-use";
on_session_start = aiMemoryHook "session-start";
pre_llm_call = aiMemoryHook "user-prompt-submit";
on_session_end = aiMemoryHook "stop";
on_session_finalize = aiMemoryHook "session-end";
};
# ── Memory ─────────────────────────────────────────────────────────
memory = {
provider = "honcho";
provider = "builtin";
memory_enabled = true;
user_profile_enabled = true;
memory_char_limit = 2200;
@@ -287,6 +341,26 @@ in {
];
};
# ── ai-memory skills ──────────────────────────────────────────────────
# Hermes ignores MCP server instructions; the routing rules reach the
# model through these skills in ~/.hermes/skills, refreshed on each boot
# so they track the installed ai-memory version.
systemd.services.hermes-ai-memory-skills = {
description = "Install ai-memory skills for Hermes";
before = ["hermes-agent.service"];
wantedBy = ["hermes-agent.service"];
environment = {
HOME = "/var/lib/hermes";
HERMES_HOME = hermesHome;
};
serviceConfig = {
Type = "oneshot";
User = "hermes";
Group = "hermes";
ExecStart = "${aiMemory} --data-dir ${aiMemoryDataDir} install-skills --scope global --agent hermes";
};
};
# ── Activation hardening ─────────────────────────────────────────────
# Upstream (hermes-agent v2026.9.24) deep-merges the Nix settings into
# the runtime-writable config.yaml via a bare `yaml.safe_load()` with no
@@ -4,9 +4,8 @@
inputs,
...
}: let
# Netbird mesh VPN range — dashboard only accessible from mesh peers.
# m3-atlas Traefik proxies to this port over Netbird.
netbirdRange = "100.64.0.0/16";
# Mesh-only via interface match on wt0 (NetBird) — works for ip46tables
# where an IPv4 CIDR in -s would abort the ip6tables run.
apiPort = config.m3ta.ports.get "hermes-api";
dashboardPort = config.m3ta.ports.get "hermes-dashboard";
@@ -57,13 +56,13 @@ in {
networking.firewall = {
extraCommands = ''
# Allow Hermes Dashboard and OpenAI-compatible API only from Netbird mesh VPN
ip46tables -A nixos-fw -p tcp --dport ${toString dashboardPort} -s ${netbirdRange} -j nixos-fw-accept
ip46tables -A nixos-fw -p tcp --dport ${toString apiPort} -s ${netbirdRange} -j nixos-fw-accept
ip46tables -A nixos-fw -p tcp --dport ${toString dashboardPort} -i wt0 -j nixos-fw-accept
ip46tables -A nixos-fw -p tcp --dport ${toString apiPort} -i wt0 -j nixos-fw-accept
'';
extraStopCommands = ''
ip46tables -D nixos-fw -p tcp --dport ${toString dashboardPort} -s ${netbirdRange} -j nixos-fw-accept 2>/dev/null || true
ip46tables -D nixos-fw -p tcp --dport ${toString apiPort} -s ${netbirdRange} -j nixos-fw-accept 2>/dev/null || true
ip46tables -D nixos-fw -p tcp --dport ${toString dashboardPort} -i wt0 -j nixos-fw-accept 2>/dev/null || true
ip46tables -D nixos-fw -p tcp --dport ${toString apiPort} -i wt0 -j nixos-fw-accept 2>/dev/null || true
'';
};
}
+190
View File
@@ -0,0 +1,190 @@
# T3 Code server (https://t3.codes) — interactive coding-agent cockpit.
#
# Part of the three-lane agent setup (agreed 2026-10-26):
# - Lane 1, interactive cockpit: T3 Code on m3-hermes, reached over the
# NetBird mesh via direct pairing (no T3 Connect cloud relay).
# - Lane 2, autonomous workers: herdr sandbox (see herdr-sandbox.nix).
# - Lane 3, control & inbox: Hermes via Matrix (unchanged).
#
# Flow: T3 desktop/mobile app ──NetBird mesh──▶ wt0 :3773 (this server).
# The server itself comes from m3ta-home's t3code module: it binds the
# current NetBird address of wt0 and opens the port on wt0 only. This file
# adds the hermes-specific agent runtime around it.
#
# Agent runtime for the T3 harnesses (OpenCode / Claude Code, 2026-10-31):
# - Skills/commands/agents via agent-lib v2: a timer syncs the work repo
# (gitea m3tam3re/agent-lib — anonymously readable over HTTPS, verified,
# so no deploy token) into ~/.agents/skills + ~/.config/opencode/*. A
# path unit mirrors skills into ~/.claude/skills for Claude Code
# (port of m3ta-home profiles/sets/coding/agents/claude-skills.nix).
# - Git identity and Gitea push auth: m3ta-chiron for every harness spawned
# by T3, baked into the package (m3ta-home overlay
# t3code-agent-identity), so m3tam3re's interactive git is untouched.
# - Gitea SSH: m3tam3re's ssh config pins User gitea + key ~/.ssh/gitea
# (one-time keygen; pubkey added to the m3ta-chiron account) for
# interactive use and git+ssh:// flake inputs. Host key pinned system-wide.
# - Gitea change requests: tea with the agent-gitea-token-m3ta agenix secret,
# baked into the same package.
#
# One-time interactive steps after deploy (deliberately NOT declarative —
# subscription auth must live in each harness's own credential store and
# may not be shared with other tools per provider ToS):
# - Pair clients: `sudo -u m3tam3re t3 pair` (or take the pairing URL
# from `journalctl -u t3code` after first start) and add the
# environment in the T3 app via the printed URL/QR code.
# - Claude Code: `sudo -u m3tam3re claude auth login`
# (persists in /home/m3tam3re/.claude).
# - OpenCode: `sudo -u m3tam3re opencode auth login`
# (subscription auth persists in OpenCode's own state dir).
# - Gitea push key for the T3 lane (a private key must not live in the
# nix store, so imperative like the harness auths above):
# sudo -u m3tam3re ssh-keygen -t ed25519 -N "" \
# -C chiron-t3-m3-hermes -f /home/m3tam3re/.ssh/gitea
# Then add the pubkey to the m3ta-chiron account on code.m3ta.dev
# (m3ta-chiron → Settings → SSH / GPG Keys → "chiron-t3-m3-hermes").
# Verify: sudo -u m3tam3re ssh -T gitea@code.m3ta.dev
{
config,
pkgs,
...
}: let
# ── Lane-1 agent runtime ─────────────────────────────────────────────
cockpitUser = "m3tam3re";
cockpitHome = "/home/${cockpitUser}";
# SSH to the private Gitea for the T3 lane. Sits in m3tam3re's ssh
# config (per-user — Hermes' own gitea access via its own ssh config
# is unaffected). URL-embedded users (gitea@code.m3ta.dev) match the
# Host block, so IdentityFile applies to git remotes and flake inputs
# alike.
t3SshConfig = pkgs.writeText "t3-gitea-ssh-config" ''
Host code.m3ta.dev
User gitea
IdentityFile ${cockpitHome}/.ssh/gitea
IdentitiesOnly yes
'';
# Mirror ~/.agents/skills → ~/.claude/skills so Claude Code sees the
# same skills OpenCode does. Per-skill symlinks: Claude's own entries
# and hand-made skills stay untouched, vanished skills get unlinked.
claudeSkillsSync = pkgs.writeShellApplication {
name = "t3-claude-skills-sync";
runtimeInputs = [pkgs.coreutils];
text = ''
src="${cockpitHome}/.agents/skills"
dst="${cockpitHome}/.claude/skills"
mkdir -p "$src" "$dst"
# Drop links whose target is gone.
for link in "$dst"/*; do
[ -L "$link" ] || continue
case "$(readlink "$link")" in
"$src"/*) [ -e "$link" ] || rm -f "$link" ;;
esac
done
# Link every skill folder; never replace a real dir or foreign link.
for skill in "$src"/*/; do
skill="''${skill%/}"
[ -f "$skill/SKILL.md" ] || continue
name="$(basename "$skill")"
target="$dst/$name"
if [ -L "$target" ] || [ ! -e "$target" ]; then
ln -sfn "$skill" "$target"
fi
done
'';
};
in {
# CLI on the system for interactive admin (t3 pair, t3 service status)
# plus the harnesses T3 Code orchestrates. Login shells need them for
# the one-time auth flows documented in the header. agent-lib enables
# interactive syncs by the cockpit user (`agent-lib sync` / `status`).
environment.systemPackages = [
pkgs.llm-agents.t3code
pkgs.llm-agents.opencode2
pkgs.llm-agents.claude-code
pkgs.llm-agents.beads
pkgs.agent-lib
];
# ── T3 Code server (m3ta-home module, cockpit user) ─────────────────
# The harnesses, git and beads for the agents come from the system
# profile above (the module puts /run/current-system/sw on the path).
m3ta.t3code = {
enable = true;
user = cockpitUser;
port = config.m3ta.ports.get "t3code";
};
# ── Gitea (code.m3ta.dev) for the T3 lane ────────────────────────────
# Host key pinned system-wide: non-interactive SSH (git clone, nix
# flake git+ssh inputs) works for every user without a first-connect
# prompt. Read-only fact, safe to share across users.
environment.etc."ssh/ssh_known_hosts".text = ''
code.m3ta.dev ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFmmqZ4GgDEXJgj8uYrZAr/EoLIA6LJGkTIyKGQD/60a
'';
# Per-user SSH config (User gitea + key, see t3SshConfig). NOTE: L+
# replaces a pre-existing real file — none existed at PR time. If
# m3tam3re ever grows his own ssh config here, fold the Host block in
# by hand and drop this rule.
systemd.tmpfiles.rules = [
"d ${cockpitHome}/.ssh 0700 ${cockpitUser} users -"
"L+ ${cockpitHome}/.ssh/config - - - - ${t3SshConfig}"
# The fleet-wide key path the T3 package expects (see t3code-agent-identity).
"L+ ${cockpitHome}/.ssh/m3ta-chiron - - - - ${cockpitHome}/.ssh/gitea"
];
# ── agent-lib v2 client: skills/commands/agents for the harnesses ────
# Fleet rollout pattern (agent-lib docs/fleet-handoff.md): one
# admin-protected config at /etc/agent-lib/config.json, root-owned and
# world-readable (mode 0644 by default). The work repo is anonymously
# readable over HTTPS (verified 2026-10-31) — no token in the config.
environment.etc."agent-lib/config.json".text =
builtins.toJSON {repo_url = "https://code.m3ta.dev/m3tam3re/agent-prod.git";};
# Sync runs in the cockpit user's context (deployment targets resolve
# against $HOME) and mirrors skills into Claude Code right after.
systemd.services.agent-lib-sync = {
description = "agent-lib sync — deploy work repo into T3 agent runtime paths";
after = ["network-online.target"];
wants = ["network-online.target"];
serviceConfig = {
Type = "oneshot";
User = cockpitUser;
Group = "users";
ExecStart = "${pkgs.agent-lib}/bin/agent-lib sync";
ExecStartPost = "${claudeSkillsSync}/bin/t3-claude-skills-sync";
};
environment.HOME = cockpitHome;
};
systemd.timers.agent-lib-sync = {
description = "agent-lib sync every 2h (skills for T3 Code agents)";
wantedBy = ["timers.target"];
timerConfig = {
OnBootSec = "5min";
OnUnitActiveSec = "2h";
Persistent = true;
};
};
# Catch manual `agent-lib sync` runs by the cockpit user as well.
systemd.paths.t3-claude-skills-sync = {
description = "Watch ~/.agents/skills for changes (mirror to Claude Code)";
wantedBy = ["multi-user.target"];
pathConfig.PathChanged = "${cockpitHome}/.agents/skills";
};
systemd.services.t3-claude-skills-sync = {
description = "Mirror ~/.agents/skills into ~/.claude/skills (Claude Code)";
serviceConfig = {
Type = "oneshot";
User = cockpitUser;
Group = "users";
ExecStart = "${claudeSkillsSync}/bin/t3-claude-skills-sync";
};
environment.HOME = cockpitHome;
};
}
-1
View File
@@ -31,7 +31,6 @@
wlrobs
];
};
programs.fish.enable = true;
programs.thunar = {
enable = true;
plugins = with pkgs; [thunar-archive-plugin thunar-volman];
+12
View File
@@ -1,11 +1,23 @@
{
age = {
secrets = {
agent-gitea-token-m3ta = {
file = ../../secrets/agent-gitea-token-m3ta.age;
owner = "m3tam3re";
};
agent-gitea-token-az = {
file = ../../secrets/agent-gitea-token-az.age;
owner = "m3tam3re";
};
anytype-key = {
file = ../../secrets/anytype-key.age;
owner = "m3tam3re";
};
tailscale-key = {file = ../../secrets/tailscale-key.age;};
ai-memory-token = {
file = ../../secrets/ai-memory-token-kratos.age;
owner = "m3tam3re";
};
wg-DE = {
file = ../../secrets/wg-DE.age;
path = "/etc/wireguard/DE.conf";
+1
View File
@@ -6,6 +6,7 @@
./netbird.nix
./postgres.nix
./sound.nix
./t3code.nix
./udev.nix
./wireguard.nix
];
+7
View File
@@ -0,0 +1,7 @@
{config, ...}: {
m3ta.t3code = {
enable = true;
user = "m3tam3re";
port = config.m3ta.ports.get "t3code";
};
}
+5 -1
View File
@@ -55,6 +55,10 @@ in {
"secrets/hermes-env.age".publicKeys = systems ++ users;
"secrets/hermes-cloud-env.age".publicKeys = systems ++ users;
"secrets/hermes-api-server-key.age".publicKeys = systems ++ users;
"secrets/hermes-gitea-token.age".publicKeys = systems ++ users;
"secrets/agent-gitea-token-m3ta.age".publicKeys = systems ++ users;
"secrets/agent-gitea-token-az.age".publicKeys = [m3-kratos] ++ users;
"secrets/tuwunel-registration-token.age".publicKeys = systems ++ users;
"secrets/ai-memory-server-env.age".publicKeys = [m3-hermes] ++ users;
"secrets/ai-memory-hermes-token.age".publicKeys = [m3-hermes] ++ users;
"secrets/ai-memory-token-kratos.age".publicKeys = [m3-kratos] ++ users;
}
+12
View File
@@ -0,0 +1,12 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IDNCY3IxdyA3cDdZ
d1RIUGdOelJkL0ZZTldKYmNGRzN5RTQrSDVGNVE1dW1TaDdoR2xVCjZJTWZqVmFx
blZSemcyRjhXaHBXV1BTN3RNM0xLOVB6aGJlTlBvNnFmMFEKLT4gc3NoLWVkMjU1
MTkgKytUcWFRICtab1hacXg2OE5QK3FRTlRVdmZoSmtUTThwUVU5dk14cnNnMzdM
RmVLV1kKTzJUNU12VnBzeW9yZjBYUUtmcUNxcmttMGVGV3VYNWhOcldSQkxXSndw
NAotPiBzc2gtZWQyNTUxOSBDU015aGcgdmdxVWI2UG5USFBWR24vRGpKQmF0QXlE
dFlqTFFsWHUxRlpDZitYUE1RRQpxS2cvTURGZUFjNVlwRmRtcVZ6bWhLRTZPa0lQ
U3pzSXhtazMxcXkrRnJnCi0tLSB3OUsyT2YzL05UVWhJMVEwdno4Z0U0WGhTb1Qx
SmNyVWNhZHVOeDdkVHFNCvfBDJ9SzlWGD3URDtM74LvjYRNcb33SCstNhwCYswur
dnu8OawdQeVcYV1dhAMW/16F/n/Nd9MSVkaW4K7tUsOs8XbCHTB7Fxg=
-----END AGE ENCRYPTED FILE-----
File renamed without changes.
+10
View File
@@ -0,0 +1,10 @@
age-encryption.org/v1
-> ssh-ed25519 c4NQlA zI/2l+f5lXIlxga5caBbNnZPubSZw62MbT+6e5Qb2Bw
jQwWwzdW7NmLXZUY/UPoTXqz+aEUC0v2w3w7GwmLo1c
-> ssh-ed25519 ++TqaQ sd7cXefrEAlTVbp2Zn7nj2byTJzm87Ld5CDhuzx6llU
4vUCyqc6c/y418UlBOQlhOEC6/byevt4dGOxKMrpUq4
-> ssh-ed25519 CSMyhg dLYOoqGQQVTBxMEVoaFTU4cw49m5oIcdVGIR4chufXM
wO5VZT4gf5Dght8G8SNc20+nroPk8V0G28fPkNHV5Og
--- 7aJoglTeUIipNSavXfkU1Bvqy0g46QDYOBk36Ktxqmg
5ì è42˜D ÃK›c¾M=¿/õÆWÃhfe¿~–ÎÖîÎeÕyjåìÒ¥G¯Q Hpç‡
Åx•ŸZd©Qo¦¿¥ZÔ@7$¾'
Binary file not shown.
Binary file not shown.