Merge pull request #121352 from lukegb/debug-hydra
amazonImage: make statically sized again
This commit is contained in:
commit
c58f60b41b
|
@ -41,7 +41,7 @@ in {
|
||||||
|
|
||||||
sizeMB = mkOption {
|
sizeMB = mkOption {
|
||||||
type = with types; either (enum [ "auto" ]) int;
|
type = with types; either (enum [ "auto" ]) int;
|
||||||
default = "auto";
|
default = if config.ec2.hvm then 2048 else 8192;
|
||||||
example = 8192;
|
example = 8192;
|
||||||
description = "The size in MB of the image";
|
description = "The size in MB of the image";
|
||||||
};
|
};
|
||||||
|
|
|
@ -224,6 +224,25 @@ in rec {
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
# Test job for https://github.com/NixOS/nixpkgs/issues/121354 to test
|
||||||
|
# automatic sizing without blocking the channel.
|
||||||
|
amazonImageAutomaticSize = forMatchingSystems [ "x86_64-linux" "aarch64-linux" ] (system:
|
||||||
|
|
||||||
|
with import ./.. { inherit system; };
|
||||||
|
|
||||||
|
hydraJob ((import lib/eval-config.nix {
|
||||||
|
inherit system;
|
||||||
|
modules =
|
||||||
|
[ configuration
|
||||||
|
versionModule
|
||||||
|
./maintainers/scripts/ec2/amazon-image.nix
|
||||||
|
({ ... }: { amazonImage.sizeMB = "auto"; })
|
||||||
|
];
|
||||||
|
}).config.system.build.amazonImage)
|
||||||
|
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
# Ensure that all packages used by the minimal NixOS config end up in the channel.
|
# Ensure that all packages used by the minimal NixOS config end up in the channel.
|
||||||
dummy = forAllSystems (system: pkgs.runCommand "dummy"
|
dummy = forAllSystems (system: pkgs.runCommand "dummy"
|
||||||
{ toplevel = (import lib/eval-config.nix {
|
{ toplevel = (import lib/eval-config.nix {
|
||||||
|
|
Loading…
Reference in New Issue