summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorRob Vermaas <rob.vermaas@gmail.com>2015-01-05 09:31:22 +0100
committerRob Vermaas <rob.vermaas@gmail.com>2015-01-05 09:35:35 +0100
commitea9530b5c702da6123c0736f6e1b5e1776ff03b5 (patch)
tree4441342b7ba90e4d97f1b9dc59bc3c8aaf0a5ece /nixos/modules/virtualisation
parent0d12020a3f65d553a1476b9321c10bc104729583 (diff)
downloadnixlib-ea9530b5c702da6123c0736f6e1b5e1776ff03b5.tar
nixlib-ea9530b5c702da6123c0736f6e1b5e1776ff03b5.tar.gz
nixlib-ea9530b5c702da6123c0736f6e1b5e1776ff03b5.tar.bz2
nixlib-ea9530b5c702da6123c0736f6e1b5e1776ff03b5.tar.lz
nixlib-ea9530b5c702da6123c0736f6e1b5e1776ff03b5.tar.xz
nixlib-ea9530b5c702da6123c0736f6e1b5e1776ff03b5.tar.zst
nixlib-ea9530b5c702da6123c0736f6e1b5e1776ff03b5.zip
Fix GCE image build.
(cherry picked from commit 98af87cd4abb0cd77e8a51cfdf6913a92d088784)
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/google-compute-image.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/google-compute-image.nix b/nixos/modules/virtualisation/google-compute-image.nix
index 697423ac60be..5dbb7693fa13 100644
--- a/nixos/modules/virtualisation/google-compute-image.nix
+++ b/nixos/modules/virtualisation/google-compute-image.nix
@@ -63,11 +63,12 @@ in
 
           # 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
+              chroot /mnt ${config.nix.package}/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 \
-              -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel}
+              -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} \
+              --option build-users-group ""
 
           # `nixos-rebuild' requires an /etc/NIXOS.
           mkdir -p /mnt/etc