about summary refs log tree commit diff
path: root/misc/launchd
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-12T13·00+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-08-12T13·00+0200
commiteff80419c76eb7d77d3b434a45fb9e18d53d1d19 (patch)
tree74474cfb11474ac7b04dac2b93469edca05efb26 /misc/launchd
parent4ea742c3f710e16136ec36acc349e7e1cf45ca37 (diff)
launchd: Set $SSL_CERT_FILE
Otherwise in particular https://cache.nixos.org won't work in the
daemon.
Diffstat (limited to 'misc/launchd')
-rw-r--r--misc/launchd/org.nixos.nix-daemon.plist.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc/launchd/org.nixos.nix-daemon.plist.in b/misc/launchd/org.nixos.nix-daemon.plist.in
index 66fcd155ee9b..0dd665db635f 100644
--- a/misc/launchd/org.nixos.nix-daemon.plist.in
+++ b/misc/launchd/org.nixos.nix-daemon.plist.in
@@ -12,5 +12,10 @@
     <string>/var/log/nix-daemon.log</string>
     <key>StandardOutPath</key>
     <string>/dev/null</string>
+    <key>EnvironmentVariables</key>
+    <dict>
+      <key>SSL_CERT_FILE</key>
+      <string>/nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt</string>
+    </dict>
   </dict>
 </plist>