Standalone agents cannot rely on shell environment variables or Home
Manager updating a system-wide certificate bundle. Prefer the system
bundle and use cacert from Home Manager's Nixpkgs input only when that
path is missing, without modifying system certificates.
Use a small native stat predicate to distinguish ENOENT from permission
and path errors. Preserve explicit certificate variables, including empty
values, and leave nix-darwin's configured bundle selection unchanged.
Cover the absence predicate and update affected launchd fixtures for the
shared command change.
Add programs.t3code.server to run the headless server as a user service
with systemd on Linux and launchd on Darwin. Support extra arguments
and an optional environment file for runtime secrets.
Add tests for generated service files and launchd environment loading.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>