From 81159cd9892ab69187f9845772175c455cc24ada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 3 Apr 2023 00:27:51 +0200 Subject: [PATCH] Increase timeout for aarch64 builds otherwise chromium times out in gallium --- flake.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9259c181..37399b5e 100644 --- a/flake.nix +++ b/flake.nix @@ -806,7 +806,15 @@ hydraJobs = lib.mapAttrs (_: nixos.lib.hydraJob) ( let - getBuildEntryPoint = _: nixosSystem: nixosSystem.config.microvm.declaredRunner or nixosSystem.config.system.build.toplevel; + getBuildEntryPoint = _: nixosSystem: + let + cfg = nixosSystem.config.microvm.declaredRunner or nixosSystem.config.system.build.toplevel; + in + if nixosSystem.config.nixpkgs.system == "aarch64-linux" then + # increase timeout for chromium + lib.recursiveUpdate cfg { meta.timeout = 24 * 60 * 60; } + else + cfg; in lib.mapAttrs getBuildEntryPoint self.nixosConfigurations # // lib.mapAttrs' (hostname: nixosSystem: lib.nameValuePair