summaryrefslogtreecommitdiffstats
path: root/nixos/release.nix
diff options
context:
space:
mode:
authorLuke Granger-Brown <git@lukegb.com>2021-05-01 02:28:31 +0000
committerLuke Granger-Brown <git@lukegb.com>2021-05-01 02:43:45 +0000
commit733d682cc3ed32c4b6325b8acffefa32a58ddb70 (patch)
tree16d2e83439d8729b1862861ff3cb118f7f78c3e8 /nixos/release.nix
parent87c3b7e767b18492fa8b3641b9c5d14dd2f38a8c (diff)
nixos/release: add amazonImageAutomaticSize
This allows us to continue to have the automatically sized image attempt to build on Hydra, which should give us a good indication of when we've got this fixed.
Diffstat (limited to 'nixos/release.nix')
-rw-r--r--nixos/release.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/release.nix b/nixos/release.nix
index 87382f42f502..746e4c9dc69d 100644
--- a/nixos/release.nix
+++ b/nixos/release.nix
@@ -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.
dummy = forAllSystems (system: pkgs.runCommand "dummy"
{ toplevel = (import lib/eval-config.nix {