From d17a0be04a57f8f21182028595b804404ef659cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=B6nig?= Date: Sun, 25 Oct 2026 12:59:01 +0100 Subject: [PATCH] feat(AZ-LT-NIX): enable ai-memory client Wires Claude Code and OpenCode2 on the workstation into the shared ai-memory server (memory.m3ta.dev) via m3ta-home's coding.aiMemory, with the whole home in the "az" workspace. The host token is the aim_ key labelled "az-lt-nix". Requires `nix flake update m3ta-home` once the module has landed on m3ta-home master. Co-Authored-By: Claude Fable 5.1 --- hosts/AZ-LT-NIX/secrets.nix | 5 +++++ hosts/common/users/sascha.koenig.nix | 6 ++++++ secrets.nix | 1 + secrets/ai-memory-token.age | 7 +++++++ 4 files changed, 19 insertions(+) create mode 100644 secrets/ai-memory-token.age diff --git a/hosts/AZ-LT-NIX/secrets.nix b/hosts/AZ-LT-NIX/secrets.nix index ba35df0..8db1948 100644 --- a/hosts/AZ-LT-NIX/secrets.nix +++ b/hosts/AZ-LT-NIX/secrets.nix @@ -25,6 +25,11 @@ file = ../../secrets/sascha.koenig-secrets.age; owner = "sascha.koenig"; }; + # ai-memory client token (aim_ key "az-lt-nix" on memory.m3ta.dev) + ai-memory-token = { + file = ../../secrets/ai-memory-token.age; + owner = "sascha.koenig"; + }; }; }; } diff --git a/hosts/common/users/sascha.koenig.nix b/hosts/common/users/sascha.koenig.nix index d269159..a0d0a4d 100644 --- a/hosts/common/users/sascha.koenig.nix +++ b/hosts/common/users/sascha.koenig.nix @@ -83,6 +83,12 @@ }; lsp.enable = true; packages.enable = true; + # Shared agent memory (server: memory.m3ta.dev). Everything on this + # host is work, so the whole home maps to the "az" workspace. + aiMemory = { + enable = true; + workspace = "az"; + }; languages = { python.enable = true; javascript.enable = true; diff --git a/secrets.nix b/secrets.nix index 120ead8..1cd5376 100644 --- a/secrets.nix +++ b/secrets.nix @@ -27,6 +27,7 @@ in { "secrets/outline-key.age".publicKeys = systems ++ users; "secrets/ref-key.age".publicKeys = systems ++ users; "secrets/sascha.koenig-secrets.age".publicKeys = [AZ-LT-NIX sascha.koenig]; + "secrets/ai-memory-token.age".publicKeys = [AZ-LT-NIX sascha.koenig]; # ── Per-host Thin Client secrets ────────────────────────────────── # Each Thin Client needs: diff --git a/secrets/ai-memory-token.age b/secrets/ai-memory-token.age new file mode 100644 index 0000000..812d432 --- /dev/null +++ b/secrets/ai-memory-token.age @@ -0,0 +1,7 @@ +age-encryption.org/v1 +-> ssh-ed25519 SrHaqA P8n4nkw5/g1F+JvhfGqpkE7997x11Lc8U8GV9go/xw4 +iOweHwGkqR6C7XYs4Z8TZ1KSbq78mieYsFqWeM9LqWI +-> ssh-ed25519 CSMyhg sMnnya3MKJFqtdc7n4jCeYtogW1TfsFcn09B0XZUQjA +bUAJz+ya9nPMWju8Yc31PdpFRtbJlswOnJQAJKtbC1E +--- UUTehBCpX6fqklyHu+NJPFcj+Ufnea1rnLYfLZsoGmM +îéüj­3süÅúWâ÷RƒÛ<ó¦¯Y;6)ECrLèXùefËïðwDÍ´FRšúIý-Ò¹ÞH͹C‰Ô�¥…³HQ&¬í:-�äì+ š \ No newline at end of file