nixos module: non-empty SetCredential fallbacks (systemd 260) #22

Manually merged
krisbuild merged 1 commit from setcredential-fallback into main 2026-09-27 21:29:58 +02:00
Owner

The agent unit's SetCredential= fallbacks were empty (cp-token:, forge-token:). systemd 260 rejects that as invalid syntax and ignores the line (Invalid syntax, ignoring: forge-token:). As a result, a missing token file fails credential setup with 243/CREDENTIALS and a crash loop, instead of reaching the preflight's readable error. This was seen live on ares with the same pattern in pixienix's attic-token wiring, which is fixed there separately.

The placeholder value is now missing. The preflight stats the source files, so the placeholder is never used as a token. The nixos-module check builds.

🤖 Generated with Claude Code

The agent unit's `SetCredential=` fallbacks were empty (`cp-token:`, `forge-token:`). systemd 260 rejects that as invalid syntax and ignores the line (`Invalid syntax, ignoring: forge-token:`). As a result, a missing token file fails credential setup with `243/CREDENTIALS` and a crash loop, instead of reaching the preflight's readable error. This was seen live on ares with the same pattern in pixienix's attic-token wiring, which is fixed there separately. The placeholder value is now `missing`. The preflight stats the source files, so the placeholder is never used as a token. The `nixos-module` check builds. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
nixos module: non-empty SetCredential fallbacks for agent credentials
All checks were successful
krisbuild/kris/krisbuild/nix/test-deps cached
krisbuild/kris/krisbuild/nix/workspace-deps cached
krisbuild/kris/krisbuild/nix/hello cached
krisbuild/kris/krisbuild/nix/test cached
krisbuild/kris/krisbuild/nix/clippy cached
krisbuild/kris/krisbuild/nix/build cached
krisbuild/kris/krisbuild/nix/world cached
krisbuild/kris/krisbuild/nix/kb-check cached
krisbuild/kris/krisbuild krisbuild kris/krisbuild: all tasks succeeded
krisbuild/queue merged
a5ecfe7688
systemd 260 rejects an empty SetCredential= value (`cp-token:`) as invalid
syntax and drops it, so a missing token file failed credential setup
(243/CREDENTIALS) instead of reaching the preflight's legible error.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Author
Owner

Two-line module fix; nixos-module check builds locally.

@krisbuild r+

Two-line module fix; `nixos-module` check builds locally. @krisbuild r+
krisbuild manually merged commit 214f223466 into main 2026-09-27 21:29:58 +02:00
Collaborator

Merged as 214f223466.

Merged as 214f223466e5.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kris/krisbuild!22
No description provided.