From 4824c265f9681fbaa51c2c70fec7772c4a7780c3 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 13:48:55 -0400 Subject: [PATCH 1/3] add hydraJobs back in --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index e948a56..ff3078a 100644 --- a/flake.nix +++ b/flake.nix @@ -157,7 +157,7 @@ rec { inherit lib; # for allowing use of custom functions in nix repl - #hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs systems; }; + hydraJobs = import ./hydra/jobs.nix { inherit inputs outputs systems; }; formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style); nixosConfigurations = genSystems inputs outputs src (src + "/systems"); -- 2.48.1 From ef94163933f02f40f21ebbaf25e7e8baf3c7fbce Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 15:09:02 -0400 Subject: [PATCH 2/3] set enable state based on pr status --- hydra/jobsets.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hydra/jobsets.nix b/hydra/jobsets.nix index f1a4cfa..c9e8e46 100644 --- a/hydra/jobsets.nix +++ b/hydra/jobsets.nix @@ -27,6 +27,7 @@ let keepnr ? 3, description, flake, + enabled ? 1, }: { inherit @@ -34,8 +35,8 @@ let flake schedulingshares keepnr + enabled ; - enabled = 1; type = 1; hidden = false; checkinterval = 300; # every 5 minutes @@ -64,6 +65,7 @@ let value = makeJob { description = "PR ${id}: ${info.title}"; flake = "git+ssh://gitea@nayeonie.com:2222/${info.head.repo.full_name}?ref=${info.head.ref}"; + enabled = if info.state == "open" then 1 else 0; }; }; -- 2.48.1 From 5696ef56602b3fa787b293317f02262a00a80e0a Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 26 Mar 2025 15:54:39 -0400 Subject: [PATCH 3/3] allow IFD --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index ff3078a..1203729 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,7 @@ "nix-cache:trR+y5nwpQHR4hystoogubFmp97cewkjWeqqbygRQRs=" ]; trusted-users = [ "root" ]; + allow-import-from-derivation = true; }; inputs = { -- 2.48.1