Merge remote-tracking branch 'cd/master'
This commit is contained in:
commit
a19cf6d4a3
|
@ -231,6 +231,7 @@ with lib;
|
||||||
addrs6 = ["42:0:0:0:0:0:0:1337"];
|
addrs6 = ["42:0:0:0:0:0:0:1337"];
|
||||||
aliases = [
|
aliases = [
|
||||||
"wu.retiolum"
|
"wu.retiolum"
|
||||||
|
"cgit.wu.retiolum"
|
||||||
];
|
];
|
||||||
tinc.pubkey = ''
|
tinc.pubkey = ''
|
||||||
-----BEGIN RSA PUBLIC KEY-----
|
-----BEGIN RSA PUBLIC KEY-----
|
||||||
|
|
|
@ -130,16 +130,24 @@ let out = {
|
||||||
nix_env=$(cat_src | sed -n '
|
nix_env=$(cat_src | sed -n '
|
||||||
s:.*\(/nix/store/[a-z0-9]*-nix-[0-9.]\+/bin/nix-env\).*:\1:p;T;q
|
s:.*\(/nix/store/[a-z0-9]*-nix-[0-9.]\+/bin/nix-env\).*:\1:p;T;q
|
||||||
')
|
')
|
||||||
coreutils=$(find /mnt/nix/store \
|
echo "nix-env is $nix_env" >&2
|
||||||
-mindepth 1 -maxdepth 1 -type d -name '*-coreutils-*' \
|
getchrootpath() {(
|
||||||
| head -n 1 | sed s:^/mnt::)
|
name=$1
|
||||||
echo nix-env is $nix_env
|
path=$(find /mnt/nix/store \
|
||||||
|
-mindepth 1 -maxdepth 1 -type d -name '*-'"$name"'-*' \
|
||||||
|
| head -n 1 | sed s:^/mnt::)
|
||||||
|
echo "$name is $path" >&2
|
||||||
|
echo "$path"
|
||||||
|
)}
|
||||||
|
cacert=$(getchrootpath cacert)
|
||||||
|
coreutils=$(getchrootpath coreutils)
|
||||||
|
env="$coreutils/bin/env \
|
||||||
|
SSL_CERT_FILE=$cacert/etc/ssl/certs/ca-bundle.crt"
|
||||||
sed -i '
|
sed -i '
|
||||||
s:^NIX_PATH=:chroot $mountPoint '"$coreutils"'/bin/env &:
|
s:^NIX_PATH=:chroot $mountPoint '"$env"' &:
|
||||||
s:^nix-env:'"$nix_env"':
|
s:^nix-env:'"$nix_env"':
|
||||||
' nixos-install
|
' nixos-install
|
||||||
|
|
||||||
unset SSL_CERT_FILE
|
|
||||||
./nixos-install
|
./nixos-install
|
||||||
''}
|
''}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue