1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00
nix/misc/launchd/org.nixos.nix-daemon.plist.in
John Soo 1a2861baa6
launchd: Swap OtherJobEnabled->PathState for nix-daemon.
This seems to be all that is necessary to run the daemon when /nix is
mounted.
* Keep RunAtLoad=false so that the daemon executable is not found when
launchd loads the service.
* Keep RunAtLoad=true in darwin-store so that it always runs.
2021-12-03 16:03:49 -08:00

33 lines
995 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>NIX_SSL_CERT_FILE</key>
<string>/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt</string>
<key>OBJC_DISABLE_INITIALIZE_FORK_SAFETY</key>
<string>YES</string>
</dict>
<key>Label</key>
<string>org.nixos.nix-daemon</string>
<key>KeepAlive</key>
<dict>
<key>PathState</key>
<dict>
<key>/nix/var/nix/profiles/default/bin/nix-daemon</key>
<true/>
</dict>
</dict>
<key>RunAtLoad</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/nix/var/nix/profiles/default/bin/nix-daemon</string>
</array>
<key>StandardErrorPath</key>
<string>/var/log/nix-daemon.log</string>
<key>StandardOutPath</key>
<string>/dev/null</string>
</dict>
</plist>