Fix installing the Nixpkgs channel on the installation media

And test that it got installed correctly.
This commit is contained in:
Eelco Dolstra 2018-02-27 19:58:23 +01:00
parent 8c6f9223d0
commit cc2eeef4ab
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 18 additions and 7 deletions

View file

@ -181,7 +181,8 @@ let format' = format; in let
nix-store --load-db < ${closureInfo}/registration
echo "running nixos-install..."
nixos-install --root $root --no-bootloader --no-root-passwd --closure ${config.system.build.toplevel} --substituters ""
nixos-install --root $root --no-bootloader --no-root-passwd \
--system ${config.system.build.toplevel} --channel ${channelSources} --substituters ""
echo "copying staging root to image..."
cptofs -p ${optionalString (partitionTableType != "none") "-P ${rootPartition}"} -t ${fsType} -i $diskImage $root/* /