git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/amazon-image: (temporarily) use fixed disk size again

As a temporary workaround for #120473 while the image builder is patched to correctly look up disk sizes, partially revert f3aa040bcbf39935e7e9ac7a7296eac9da7623ec for EC2 disk images only. We retain the type allowing "auto" but set the default back to the previous value.

commit6a8359a92ab501ae62739e9d3302f48e3e73c750 authorLuke Granger-Brown <git@lukegb.com> dateSat 24 Apr 2021, 00:42 (6 years ago) parentc298ef8
1 file changed+2−1
nixos/maintainers/scripts/ec2/amazon-image.nix+2−1
nixos/maintainers/scripts/ec2/amazon-image.nix+2−1
@@ -41,7 +41,8 @@ in {
4141
4242 sizeMB = mkOption {
4343 type = with types; either (enum [ "auto" ]) int;
44− default = "auto";
44+ # TODO(lukegb): this should be "auto"; see #120473
45+ default = if config.ec2.hvm then 2048 else 8192;
4546 example = 8192;
4647 description = "The size in MB of the image";
4748 };