···364364 ''
365365 # After booting, register the contents of the Nix store on the
366366 # CD in the Nix database in the tmpfs.
367367- ${config.nix.package}/bin/nix-store --load-db < /nix/store/nix-path-registration
367367+ ${config.nix.package.out}/bin/nix-store --load-db < /nix/store/nix-path-registration
368368369369 # nixos-rebuild also requires a "system" profile and an
370370 # /etc/NIXOS tag.
371371 touch /etc/NIXOS
372372- ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
372372+ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
373373 '';
374374375375 # Add vfat support to the initrd to enable people to copy the
+2-2
nixos/modules/installer/cd-dvd/sd-image.nix
···113113 ${pkgs.e2fsprogs}/bin/resize2fs $rootPart
114114115115 # Register the contents of the initial Nix store
116116- ${config.nix.package}/bin/nix-store --load-db < /nix-path-registration
116116+ ${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration
117117118118 # nixos-rebuild also requires a "system" profile and an /etc/NIXOS tag.
119119 touch /etc/NIXOS
120120- ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
120120+ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
121121122122 # Prevents this from running on later boots.
123123 rm -f /nix-path-registration
+2-2
nixos/modules/installer/cd-dvd/system-tarball.nix
···7878 # After booting, register the contents of the Nix store on the
7979 # CD in the Nix database in the tmpfs.
8080 if [ -f /nix-path-registration ]; then
8181- ${config.nix.package}/bin/nix-store --load-db < /nix-path-registration &&
8181+ ${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration &&
8282 rm /nix-path-registration
8383 fi
84848585 # nixos-rebuild also requires a "system" profile and an
8686 # /etc/NIXOS tag.
8787 touch /etc/NIXOS
8888- ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
8888+ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
8989 '';
90909191 };
···271271if [ -n "$buildNix" ]; then
272272 echo "building Nix..." >&2
273273 nixDrv=
274274- if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A config.nix.package "${extraBuildFlags[@]}")"; then
274274+ if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A config.nix.package.out "${extraBuildFlags[@]}")"; then
275275 if ! nixDrv="$(nix-instantiate '<nixpkgs/nixos>' --add-root $tmpDir/nix.drv --indirect -A nixFallback "${extraBuildFlags[@]}")"; then
276276 if ! nixDrv="$(nix-instantiate '<nixpkgs>' --add-root $tmpDir/nix.drv --indirect -A nix "${extraBuildFlags[@]}")"; then
277277 nixStorePath="$(prebuiltNix "$(uname -m)")"
···4141 PermitTTY no
4242 PermitTunnel no
4343 X11Forwarding no
4444- ForceCommand ${config.nix.package}/bin/nix-store --serve
4444+ ForceCommand ${config.nix.package.out}/bin/nix-store --serve
4545 Match All
4646 '';
4747