diff options
author | lassulus <lass@aidsballs.de> | 2015-10-21 02:32:20 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-10-21 02:32:20 +0200 |
commit | 1a553a24c5ec3660a754f36fc5db17b869ef9f85 (patch) | |
tree | 085b582f57600f07bc541022cfb5c0b2c4aecba4 /krebs | |
parent | 5f0e54f3cc8775fa609c3e790b2a287e0f4e9d4d (diff) | |
parent | 9c9a7d611ed9201e84ed49067027e85389313b7c (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/krebs/default.nix b/krebs/default.nix index 5518a4496..5f1cfb95b 100644 --- a/krebs/default.nix +++ b/krebs/default.nix @@ -126,6 +126,16 @@ let out = { } > nixos-install chmod +x nixos-install + # Wrap inserted nix-install into chroot. + nix_env=$(cat_src | sed -n ' + s:.*\(/nix/store/[a-z0-9]*-nix-[0-9.]\+/bin/nix-env\).*:\1:p;T;q + ') + echo nix-env is $nix_env + sed -i ' + s:^NIX_PATH=:chroot $mountPoint /usr/bin/env &: + s:^nix-env:'"$nix_env"': + ' nixos-install + unset SSL_CERT_FILE ./nixos-install ''} |