Fix GCE image build.

(cherry picked from commit 98af87cd4abb0cd77e8a51cfdf6913a92d088784)

+3 -2
+3 -2
nixos/modules/virtualisation/google-compute-image.nix
··· 63 63 64 64 # Register the paths in the Nix database. 65 65 printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \ 66 - chroot /mnt ${config.nix.package}/bin/nix-store --load-db 66 + chroot /mnt ${config.nix.package}/bin/nix-store --load-db --option build-users-group "" 67 67 68 68 # Create the system profile to allow nixos-rebuild to work. 69 69 chroot /mnt ${config.nix.package}/bin/nix-env \ 70 - -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} 70 + -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \ 71 + --option build-users-group "" 71 72 72 73 # `nixos-rebuild' requires an /etc/NIXOS. 73 74 mkdir -p /mnt/etc