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

authored by

Tuomas Tynkkynen and committed by
Vladimír Čunát
60f5659d bee04a37

+21 -21
+3 -3
nixos/lib/make-disk-image.nix
··· 81 82 # Register the paths in the Nix database. 83 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 84 - chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group "" 85 86 # Add missing size/hash fields to the database. FIXME: 87 # exportReferencesGraph should provide these directly. 88 - chroot /mnt ${config.nix.package}/bin/nix-store --verify --check-contents 89 90 # Create the system profile to allow nixos-rebuild to work. 91 - chroot /mnt ${config.nix.package}/bin/nix-env --option build-users-group "" \ 92 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} 93 94 # `nixos-rebuild' requires an /etc/NIXOS.
··· 81 82 # Register the paths in the Nix database. 83 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 84 + chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group "" 85 86 # Add missing size/hash fields to the database. FIXME: 87 # exportReferencesGraph should provide these directly. 88 + chroot /mnt ${config.nix.package.out}/bin/nix-store --verify --check-contents 89 90 # Create the system profile to allow nixos-rebuild to work. 91 + chroot /mnt ${config.nix.package.out}/bin/nix-env --option build-users-group "" \ 92 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} 93 94 # `nixos-rebuild' requires an /etc/NIXOS.
+1 -1
nixos/modules/installer/cd-dvd/channel.nix
··· 34 if ! [ -e /var/lib/nixos/did-channel-init ]; then 35 echo "unpacking the NixOS/Nixpkgs sources..." 36 mkdir -p /nix/var/nix/profiles/per-user/root 37 - ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/per-user/root/channels \ 38 -i ${channelSources} --quiet --option build-use-substitutes false 39 mkdir -m 0700 -p /root/.nix-defexpr 40 ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/channels
··· 34 if ! [ -e /var/lib/nixos/did-channel-init ]; then 35 echo "unpacking the NixOS/Nixpkgs sources..." 36 mkdir -p /nix/var/nix/profiles/per-user/root 37 + ${config.nix.package.out}/bin/nix-env -p /nix/var/nix/profiles/per-user/root/channels \ 38 -i ${channelSources} --quiet --option build-use-substitutes false 39 mkdir -m 0700 -p /root/.nix-defexpr 40 ln -s /nix/var/nix/profiles/per-user/root/channels /root/.nix-defexpr/channels
+2 -2
nixos/modules/installer/cd-dvd/iso-image.nix
··· 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 368 369 # 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 ''; 374 375 # 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 368 369 # 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 ''; 374 375 # 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 114 115 # Register the contents of the initial Nix store 116 - ${config.nix.package}/bin/nix-store --load-db < /nix-path-registration 117 118 # 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 121 122 # Prevents this from running on later boots. 123 rm -f /nix-path-registration
··· 113 ${pkgs.e2fsprogs}/bin/resize2fs $rootPart 114 115 # Register the contents of the initial Nix store 116 + ${config.nix.package.out}/bin/nix-store --load-db < /nix-path-registration 117 118 # 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 121 122 # 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 84 85 # 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 ''; 90 91 };
··· 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 84 85 # 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 ''; 90 91 };
+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 43 44 # 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 ''; 47 48 # 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 43 44 # 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 ''; 47 48 # Install new init script
+1 -1
nixos/modules/services/misc/nix-gc.nix
··· 52 53 systemd.services.nix-gc = 54 { description = "Nix Garbage Collector"; 55 - script = "exec ${config.nix.package}/bin/nix-collect-garbage ${cfg.options}"; 56 startAt = optionalString cfg.automatic cfg.dates; 57 }; 58
··· 52 53 systemd.services.nix-gc = 54 { description = "Nix Garbage Collector"; 55 + script = "exec ${config.nix.package.out}/bin/nix-collect-garbage ${cfg.options}"; 56 startAt = optionalString cfg.automatic cfg.dates; 57 }; 58
+1 -1
nixos/modules/services/misc/nix-ssh-serve.nix
··· 41 PermitTTY no 42 PermitTunnel no 43 X11Forwarding no 44 - ForceCommand ${config.nix.package}/bin/nix-store --serve 45 Match All 46 ''; 47
··· 41 PermitTTY no 42 PermitTunnel no 43 X11Forwarding no 44 + ForceCommand ${config.nix.package.out}/bin/nix-store --serve 45 Match All 46 ''; 47
+2 -2
nixos/modules/virtualisation/azure-image.nix
··· 62 63 echo Register the paths in the Nix database. 64 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 65 - chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group "" 66 67 echo Create the system profile to allow nixos-rebuild to work. 68 - chroot /mnt ${config.nix.package}/bin/nix-env \ 69 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} --option build-users-group "" 70 71 echo nixos-rebuild requires an /etc/NIXOS.
··· 62 63 echo Register the paths in the Nix database. 64 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 65 + chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group "" 66 67 echo Create the system profile to allow nixos-rebuild to work. 68 + chroot /mnt ${config.nix.package.out}/bin/nix-env \ 69 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} --option build-users-group "" 70 71 echo nixos-rebuild requires an /etc/NIXOS.
+2 -2
nixos/modules/virtualisation/brightbox-image.nix
··· 62 63 # Register the paths in the Nix database. 64 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 65 - chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group "" 66 67 # Create the system profile to allow nixos-rebuild to work. 68 - chroot /mnt ${config.nix.package}/bin/nix-env \ 69 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \ 70 --option build-users-group "" 71
··· 62 63 # Register the paths in the Nix database. 64 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 65 + chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group "" 66 67 # Create the system profile to allow nixos-rebuild to work. 68 + chroot /mnt ${config.nix.package.out}/bin/nix-env \ 69 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \ 70 --option build-users-group "" 71
+2 -2
nixos/modules/virtualisation/google-compute-image.nix
··· 66 67 # Register the paths in the Nix database. 68 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 69 - chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group "" 70 71 # Create the system profile to allow nixos-rebuild to work. 72 - chroot /mnt ${config.nix.package}/bin/nix-env \ 73 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \ 74 --option build-users-group "" 75
··· 66 67 # Register the paths in the Nix database. 68 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 69 + chroot /mnt ${config.nix.package.out}/bin/nix-store --load-db --option build-users-group "" 70 71 # Create the system profile to allow nixos-rebuild to work. 72 + chroot /mnt ${config.nix.package.out}/bin/nix-env \ 73 -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \ 74 --option build-users-group "" 75
+1 -1
nixos/modules/virtualisation/qemu-vm.nix
··· 403 boot.postBootCommands = 404 '' 405 if [[ "$(cat /proc/cmdline)" =~ regInfo=([^ ]*) ]]; then 406 - ${config.nix.package}/bin/nix-store --load-db < ''${BASH_REMATCH[1]} 407 fi 408 ''; 409
··· 403 boot.postBootCommands = 404 '' 405 if [[ "$(cat /proc/cmdline)" =~ regInfo=([^ ]*) ]]; then 406 + ${config.nix.package.out}/bin/nix-store --load-db < ''${BASH_REMATCH[1]} 407 fi 408 ''; 409