infest: don't init contents of the NixOS channel

This commit is contained in:
tv 2015-09-27 15:18:54 +02:00
parent 95f1673f1f
commit 2d1985e420

View File

@ -67,12 +67,16 @@ let
src=$(type -p nixos-install)
cat_src() {
sed < "$src" "$(
sed < "$src" -n '
{ sed < "$src" -n '
/^if ! test -e "\$mountPoint\/\$NIXOS_CONFIG/,/^fi$/=
/^nixpkgs=/=
/^NIX_PATH=/,/^$/{/./=}
' \
| sed 's:$:s/^/#krebs#/:'
# Disable: Copy the NixOS/Nixpkgs sources to the target as
# the initial contents of the NixOS channel.
/^srcs=/,/^ln -sfn /=
'
} | sed 's:$:s/^/#krebs#/:'
)"
}