feat(lobtop): configure Claude Code for Bedrock and OTEL telemetry - #492
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Non-secret vars go into settings.env; the OTLP Bearer token is stored in an age secret and exported via zsh sessionVariables at activation time. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sessionVariables writes with double quotes into .zshenv, causing the $(cat ...) to evaluate before agenix has decrypted the secret. Using initContent writes to .zshrc instead, where the secret is available. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The agenix home-manager agent decrypts using ~/.ssh/id_ed25519_agenix (the home key), not the host SSH key. Rekey to home+deploy so the agent can decrypt it on activation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
stackptr
enabled auto-merge (squash)
May 28, 2026 19:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
programs.claude-code.settings.envinhosts/lobtop/home.nix(host-scoped, does not affect other hosts)settings.env, the OTLP Bearer token is stored in an age secret (hosts/lobtop/secrets/otel-token.age) and exported at shell init viaprograms.zsh.initContentlib/secrets/lobtop.nixdeclaring the secret encrypted to thehome+deploykeys (the identity used by the agenix home-manager agent)Test plan
nh darwin switch .#lobtopand verify no build errorsecho $OTEL_EXPORTER_OTLP_HEADERSshowsAuthorization=Bearer <token>~/.claude/settings.jsoncontains the Bedrock and OTEL env vars🤖 Generated with Claude Code