···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 };
+2-2
nixos/modules/profiles/docker-container.nix
···3737 # After booting, register the contents of the Nix store in the Nix
3838 # database.
3939 if [ -f /nix-path-registration ]; then
4040- ${config.nix.package}/bin/nix-store --load-db < /nix-path-registration &&
4040+ ${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration &&
4141 rm /nix-path-registration
4242 fi
43434444 # nixos-rebuild also requires a "system" profile
4545- ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
4545+ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
4646 '';
47474848 # Install new init script
···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
+2-2
nixos/modules/virtualisation/azure-image.nix
···62626363 echo Register the paths in the Nix database.
6464 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
6565- chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group ""
6565+ chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group ""
66666767 echo Create the system profile to allow nixos-rebuild to work.
6868- chroot /mnt ${config.nix.package}/bin/nix-env \
6868+ chroot /mnt ${config.nix.package.out}/bin/nix-env \
6969 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} --option build-users-group ""
70707171 echo nixos-rebuild requires an /etc/NIXOS.
+2-2
nixos/modules/virtualisation/brightbox-image.nix
···62626363 # Register the paths in the Nix database.
6464 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
6565- chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group ""
6565+ chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group ""
66666767 # Create the system profile to allow nixos-rebuild to work.
6868- chroot /mnt ${config.nix.package}/bin/nix-env \
6868+ chroot /mnt ${config.nix.package.out}/bin/nix-env \
6969 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \
7070 --option build-users-group ""
7171