treewide: Use correct output in ${config.nix.package}/bin

+3 -3
nixos/lib/make-disk-image.nix
···
# Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
-
chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group ""
+
chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group ""
# Add missing size/hash fields to the database. FIXME:
# exportReferencesGraph should provide these directly.
-
chroot /mnt ${config.nix.package}/bin/nix-store --verify --check-contents
+
chroot /mnt ${config.nix.package.out}/bin/nix-store --verify --check-contents
# Create the system profile to allow nixos-rebuild to work.
-
chroot /mnt ${config.nix.package}/bin/nix-env --option build-users-group "" \
+
chroot /mnt ${config.nix.package.out}/bin/nix-env --option build-users-group "" \
-p /nix/var/nix/profiles/system --set ${config.system.build.toplevel}
# `nixos-rebuild' requires an /etc/NIXOS.
+1 -1
nixos/modules/installer/cd-dvd/channel.nix
···
if ! [ -e /var/lib/nixos/did-channel-init ]; then
echo "unpacking the NixOS/Nixpkgs sources..."
mkdir -p /nix/var/nix/profiles/per-user/root
-
${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/per-user/root/channels \
+
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/per-user/root/channels \
-i ${channelSources} --quiet --option build-use-substitutes false
mkdir -m 0700 -p /root/.nix-defexpr
ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/channels
+2 -2
nixos/modules/installer/cd-dvd/iso-image.nix
···
''
# After booting, register the contents of the Nix store on the
# CD in the Nix database in the tmpfs.
-
${config.nix.package}/bin/nix-store --load-db < /nix/store/nix-path-registration
+
${config.nix.package.out}/bin/nix-store --load-db < /nix/store/nix-path-registration
# nixos-rebuild also requires a "system" profile and an
# /etc/NIXOS tag.
touch /etc/NIXOS
-
${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
+
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
'';
# Add vfat support to the initrd to enable people to copy the
+2 -2
nixos/modules/installer/cd-dvd/sd-image.nix
···
${pkgs.e2fsprogs}/bin/resize2fs $rootPart
# Register the contents of the initial Nix store
-
${config.nix.package}/bin/nix-store --load-db < /nix-path-registration
+
${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration
# nixos-rebuild also requires a "system" profile and an /etc/NIXOS tag.
touch /etc/NIXOS
-
${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
+
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
# Prevents this from running on later boots.
rm -f /nix-path-registration
+2 -2
nixos/modules/installer/cd-dvd/system-tarball.nix
···
# After booting, register the contents of the Nix store on the
# CD in the Nix database in the tmpfs.
if [ -f /nix-path-registration ]; then
-
${config.nix.package}/bin/nix-store --load-db < /nix-path-registration &&
+
${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration &&
rm /nix-path-registration
fi
# nixos-rebuild also requires a "system" profile and an
# /etc/NIXOS tag.
touch /etc/NIXOS
-
${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
+
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
'';
};
+2 -2
nixos/modules/profiles/docker-container.nix
···
# After booting, register the contents of the Nix store in the Nix
# database.
if [ -f /nix-path-registration ]; then
-
${config.nix.package}/bin/nix-store --load-db < /nix-path-registration &&
+
${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration &&
rm /nix-path-registration
fi
# nixos-rebuild also requires a "system" profile
-
${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
+
${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
'';
# Install new init script
+1 -1
nixos/modules/services/misc/nix-gc.nix
···
systemd.services.nix-gc =
{ description = "Nix Garbage Collector";
-
script = "exec ${config.nix.package}/bin/nix-collect-garbage ${cfg.options}";
+
script = "exec ${config.nix.package.out}/bin/nix-collect-garbage ${cfg.options}";
startAt = optionalString cfg.automatic cfg.dates;
};
+1 -1
nixos/modules/services/misc/nix-ssh-serve.nix
···
PermitTTY no
PermitTunnel no
X11Forwarding no
-
ForceCommand ${config.nix.package}/bin/nix-store --serve
+
ForceCommand ${config.nix.package.out}/bin/nix-store --serve
Match All
'';
+2 -2
nixos/modules/virtualisation/azure-image.nix
···
echo Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
-
chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group ""
+
chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group ""
echo Create the system profile to allow nixos-rebuild to work.
-
chroot /mnt ${config.nix.package}/bin/nix-env \
+
chroot /mnt ${config.nix.package.out}/bin/nix-env \
-p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} --option build-users-group ""
echo nixos-rebuild requires an /etc/NIXOS.
+2 -2
nixos/modules/virtualisation/brightbox-image.nix
···
# Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
-
chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group ""
+
chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group ""
# Create the system profile to allow nixos-rebuild to work.
-
chroot /mnt ${config.nix.package}/bin/nix-env \
+
chroot /mnt ${config.nix.package.out}/bin/nix-env \
-p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \
--option build-users-group ""
+2 -2
nixos/modules/virtualisation/google-compute-image.nix
···
# Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \
-
chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group ""
+
chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group ""
# Create the system profile to allow nixos-rebuild to work.
-
chroot /mnt ${config.nix.package}/bin/nix-env \
+
chroot /mnt ${config.nix.package.out}/bin/nix-env \
-p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \
--option build-users-group ""
+1 -1
nixos/modules/virtualisation/qemu-vm.nix
···
boot.postBootCommands =
''
if [[ "$(cat /proc/cmdline)" =~ regInfo=([^ ]*) ]]; then
-
${config.nix.package}/bin/nix-store --load-db < ''${BASH_REMATCH[1]}
+
${config.nix.package.out}/bin/nix-store --load-db < ''${BASH_REMATCH[1]}
fi
'';