mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 19:49:45 +01:00
ef50612457
This adds a Darwin Launchd agent along with its sockets to make gpg-agent starts at load or whenever the sockets are needed. Fixes: https://github.com/nix-community/home-manager/issues/3864
41 lines
No EOL
998 B
Text
41 lines
No EOL
998 B
Text
<?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>EnvironmentVariables</key>
|
|
<dict>
|
|
<key>GNUPGHOME</key>
|
|
<string>/path/to/hash</string>
|
|
</dict>
|
|
<key>KeepAlive</key>
|
|
<dict>
|
|
<key>Crashed</key>
|
|
<true/>
|
|
<key>SuccessfulExit</key>
|
|
<false/>
|
|
</dict>
|
|
<key>Label</key>
|
|
<string>org.nix-community.home.gpg-agent</string>
|
|
<key>ProcessType</key>
|
|
<string>Background</string>
|
|
<key>ProgramArguments</key>
|
|
<array>
|
|
<string>@gpg@/bin/gpg-agent</string>
|
|
<string>--supervised</string>
|
|
</array>
|
|
<key>RunAtLoad</key>
|
|
<false/>
|
|
<key>Sockets</key>
|
|
<dict>
|
|
<key>Agent</key>
|
|
<dict>
|
|
<key>SockPathMode</key>
|
|
<integer>384</integer>
|
|
<key>SockPathName</key>
|
|
<string>/private/var/run/org.nix-community.home.gpg-agent/d.wp4h7ks5zxy4dodqadgpbbpz/S.gpg-agent</string>
|
|
<key>SockType</key>
|
|
<string>stream</string>
|
|
</dict>
|
|
</dict>
|
|
</dict>
|
|
</plist> |