aboutsummaryrefslogtreecommitdiff
path: root/misc/launchd/org.nixos.nix-daemon.plist.in
diff options
context:
space:
mode:
Diffstat (limited to 'misc/launchd/org.nixos.nix-daemon.plist.in')
-rw-r--r--misc/launchd/org.nixos.nix-daemon.plist.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in b/misc/launchd/org.nixos.nix-daemon.plist.in
index 92ed12fa5..9f26296a9 100644
--- a/misc/launchd/org.nixos.nix-daemon.plist.in
+++ b/misc/launchd/org.nixos.nix-daemon.plist.in
@@ -13,8 +13,12 @@
<true/>
<key>RunAtLoad</key>
<true/>
- <key>Program</key>
- <string>@bindir@/nix-daemon</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/bin/sh</string>
+ <string>-c</string>
+ <string>/bin/wait4path /nix/var/nix/profiles/default/bin/nix-daemon &amp;&amp; /nix/var/nix/profiles/default/bin/nix-daemon</string>
+ </array>
<key>StandardErrorPath</key>
<string>/var/log/nix-daemon.log</string>
<key>StandardOutPath</key>