nixos make-disk-image: fix permissions of /build

This was broken in 460c0d6 (PR #90431); now the nixos-unstable channel
should get unblocked.
vcunat modified this commit to use env-var instead of hardcoding /build
wip/yesman
lassulus 4 years ago committed by Vladimír Čunát
parent cfd3aac3fe
commit 8d05772134
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 1
      nixos/lib/make-disk-image.nix

@ -181,6 +181,7 @@ let format' = format; in let
export NIX_STATE_DIR=$TMPDIR/state
nix-store --load-db < ${closureInfo}/registration
chmod 755 "$TMPDIR"
echo "running nixos-install..."
nixos-install --root $root --no-bootloader --no-root-passwd \
--system ${config.system.build.toplevel} --channel ${channelSources} --substituters ""

Loading…
Cancel
Save