summaryrefslogtreecommitdiffstats
path: root/krebs/default.nix
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-10-22 00:49:51 +0200
committertv <tv@shackspace.de>2015-10-22 00:49:51 +0200
commitdf6f0392cbdf7923537eb5d328bd345cde11eb53 (patch)
tree4cc646231bca62d46395412bb3048c0654b681fb /krebs/default.nix
parent4b8ffc1bfd494de1fafde2527a337ad5eb31a27c (diff)
krebs.nixos-install: cacert -> /root/SSL_CERT_FILE
Diffstat (limited to 'krebs/default.nix')
-rw-r--r--krebs/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/default.nix b/krebs/default.nix
index 40d245f98..31a7f7d04 100644
--- a/krebs/default.nix
+++ b/krebs/default.nix
@@ -146,8 +146,8 @@ let out = {
)}
cacert=$(findpkg cacert)
coreutils=$(findpkg coreutils)
- env="$coreutils/bin/env \
- SSL_CERT_FILE=$cacert/etc/ssl/certs/ca-bundle.crt"
+ cp "$cacert"/etc/ssl/certs/ca-bundle.crt /mnt/root/SSL_CERT_FILE
+ env="$coreutils/bin/env SSL_CERT_FILE=/root/SSL_CERT_FILE"
sed -i '
s:^NIX_PATH=:chroot $mountPoint '"$env"' &:
s:^nix-env:'"$nix_env"':