···364 ''
365 # After booting, register the contents of the Nix store on the
366 # CD in the Nix database in the tmpfs.
367- ${config.nix.package}/bin/nix-store --load-db < /nix/store/nix-path-registration
368369 # nixos-rebuild also requires a "system" profile and an
370 # /etc/NIXOS tag.
371 touch /etc/NIXOS
372- ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
373 '';
374375 # Add vfat support to the initrd to enable people to copy the
···364 ''
365 # After booting, register the contents of the Nix store on the
366 # CD in the Nix database in the tmpfs.
367+ ${config.nix.package.out}/bin/nix-store --load-db < /nix/store/nix-path-registration
368369 # nixos-rebuild also requires a "system" profile and an
370 # /etc/NIXOS tag.
371 touch /etc/NIXOS
372+ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
373 '';
374375 # Add vfat support to the initrd to enable people to copy the
+2-2
nixos/modules/installer/cd-dvd/sd-image.nix
···113 ${pkgs.e2fsprogs}/bin/resize2fs $rootPart
114115 # Register the contents of the initial Nix store
116- ${config.nix.package}/bin/nix-store --load-db < /nix-path-registration
117118 # nixos-rebuild also requires a "system" profile and an /etc/NIXOS tag.
119 touch /etc/NIXOS
120- ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
121122 # Prevents this from running on later boots.
123 rm -f /nix-path-registration
···113 ${pkgs.e2fsprogs}/bin/resize2fs $rootPart
114115 # Register the contents of the initial Nix store
116+ ${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration
117118 # nixos-rebuild also requires a "system" profile and an /etc/NIXOS tag.
119 touch /etc/NIXOS
120+ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
121122 # Prevents this from running on later boots.
123 rm -f /nix-path-registration
+2-2
nixos/modules/installer/cd-dvd/system-tarball.nix
···78 # After booting, register the contents of the Nix store on the
79 # CD in the Nix database in the tmpfs.
80 if [ -f /nix-path-registration ]; then
81- ${config.nix.package}/bin/nix-store --load-db < /nix-path-registration &&
82 rm /nix-path-registration
83 fi
8485 # nixos-rebuild also requires a "system" profile and an
86 # /etc/NIXOS tag.
87 touch /etc/NIXOS
88- ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
89 '';
9091 };
···78 # After booting, register the contents of the Nix store on the
79 # CD in the Nix database in the tmpfs.
80 if [ -f /nix-path-registration ]; then
81+ ${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration &&
82 rm /nix-path-registration
83 fi
8485 # nixos-rebuild also requires a "system" profile and an
86 # /etc/NIXOS tag.
87 touch /etc/NIXOS
88+ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
89 '';
9091 };
+2-2
nixos/modules/profiles/docker-container.nix
···37 # After booting, register the contents of the Nix store in the Nix
38 # database.
39 if [ -f /nix-path-registration ]; then
40- ${config.nix.package}/bin/nix-store --load-db < /nix-path-registration &&
41 rm /nix-path-registration
42 fi
4344 # nixos-rebuild also requires a "system" profile
45- ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
46 '';
4748 # Install new init script
···37 # After booting, register the contents of the Nix store in the Nix
38 # database.
39 if [ -f /nix-path-registration ]; then
40+ ${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration &&
41 rm /nix-path-registration
42 fi
4344 # nixos-rebuild also requires a "system" profile
45+ ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
46 '';
4748 # Install new init script