diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2014-10-14 11:38:59 +0200 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2014-10-14 11:40:04 +0200 |
commit | 028807c3a09be032ebdbed13aa26b45a02a33301 (patch) | |
tree | e010d7c189f12ac9ff1974cb9c51b35ec6bb1bbf /nixos/modules/virtualisation/amazon-image.nix | |
parent | 69e51b08e1fc64473e0cafb87d8de6dd24179920 (diff) | |
download | nixlib-028807c3a09be032ebdbed13aa26b45a02a33301.tar nixlib-028807c3a09be032ebdbed13aa26b45a02a33301.tar.gz nixlib-028807c3a09be032ebdbed13aa26b45a02a33301.tar.bz2 nixlib-028807c3a09be032ebdbed13aa26b45a02a33301.tar.lz nixlib-028807c3a09be032ebdbed13aa26b45a02a33301.tar.xz nixlib-028807c3a09be032ebdbed13aa26b45a02a33301.tar.zst nixlib-028807c3a09be032ebdbed13aa26b45a02a33301.zip |
amazon-image.nix: Pass --option build-users-group '' to nix tools to make Amazon generation work with nix-1.8+
(cherry picked from commit 654eaeb2ca709908b0e6fdcc8eabd3af6b3c0a5d)
Diffstat (limited to 'nixos/modules/virtualisation/amazon-image.nix')
-rw-r--r-- | nixos/modules/virtualisation/amazon-image.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/virtualisation/amazon-image.nix b/nixos/modules/virtualisation/amazon-image.nix index e129e496fe36..aab4f305aabb 100644 --- a/nixos/modules/virtualisation/amazon-image.nix +++ b/nixos/modules/virtualisation/amazon-image.nix @@ -70,10 +70,10 @@ 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 \ + chroot /mnt ${config.nix.package}/bin/nix-env --option build-users-group '' \ -p /nix/var/nix/profiles/system --set ${config.system.build.toplevel} # `nixos-rebuild' requires an /etc/NIXOS. |