Files
home-manager/tests/modules/programs/t3code/server.plist
Austin Horstman cc9089ae58 launchd: provide standalone certificate fallback
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.
2026-12-02 22:22:46 -06:00

25 lines
746 B
Plaintext

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>Crashed</key>
<true/>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>org.nix-community.home.t3code</string>
<key>ProcessType</key>
<string>Background</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>-c</string>
<string>/bin/wait4path /nix/store &amp;&amp; exec /bin/sh /nix/store/00000000000000000000000000000000-launchd-certificate-environment @t3code@/bin/t3 serve --host 0.0.0.0 --port 3773</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>