Files
home-manager/tests/modules/launchd/expected-ca-inline.plist
Austin Horstman fe2e84b2b4 launchd: inherit nix-darwin certificate bundle
Shell session variables do not reach launchd agents, leaving programs
that honor NIX_SSL_CERT_FILE on their fallback trust bundle.

Pass the selected nix-darwin bundle through a shared POSIX wrapper only
when neither certificate variable is set. Preserve explicit and inherited
values, including empty ones, custom launcher interpreters, and the
wait-for-store ordering.

Prefer security.pki.environment when available so agents also receive
nix-darwin's filtered fallback when system certificate installation is
disabled. Retain the environment.variables lookup for older versions.

Cover both launch modes, fish launchers, certificate overrides, and
unconfigured hosts in the existing launchd tests.
2026-12-02 22:22:46 -06:00

14 lines
569 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>Label</key>
<string>org.nix-community.home.ca-inline</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 /nix/store/00000000000000000000000000000000-coreutils/bin/env</string>
</array>
</dict>
</plist>