add hydraJobs back in #62
| @@ -18,6 +18,7 @@ | |||||||
|       "nix-cache:trR+y5nwpQHR4hystoogubFmp97cewkjWeqqbygRQRs=" |       "nix-cache:trR+y5nwpQHR4hystoogubFmp97cewkjWeqqbygRQRs=" | ||||||
|     ]; |     ]; | ||||||
|     trusted-users = [ "root" ]; |     trusted-users = [ "root" ]; | ||||||
|  |     allow-import-from-derivation = true; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   inputs = { |   inputs = { | ||||||
| @@ -157,7 +158,7 @@ | |||||||
|     rec { |     rec { | ||||||
|       inherit lib; # for allowing use of custom functions in nix repl |       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); |       formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.nixfmt-rfc-style); | ||||||
|  |  | ||||||
|       nixosConfigurations = genSystems inputs outputs src (src + "/systems"); |       nixosConfigurations = genSystems inputs outputs src (src + "/systems"); | ||||||
|   | |||||||
| @@ -27,6 +27,7 @@ let | |||||||
|       keepnr ? 3, |       keepnr ? 3, | ||||||
|       description, |       description, | ||||||
|       flake, |       flake, | ||||||
|  |       enabled ? 1, | ||||||
|     }: |     }: | ||||||
|     { |     { | ||||||
|       inherit |       inherit | ||||||
| @@ -34,8 +35,8 @@ let | |||||||
|         flake |         flake | ||||||
|         schedulingshares |         schedulingshares | ||||||
|         keepnr |         keepnr | ||||||
|  |         enabled | ||||||
|         ; |         ; | ||||||
|       enabled = 1; |  | ||||||
|       type = 1; |       type = 1; | ||||||
|       hidden = false; |       hidden = false; | ||||||
|       checkinterval = 300; # every 5 minutes |       checkinterval = 300; # every 5 minutes | ||||||
| @@ -64,6 +65,7 @@ let | |||||||
|     value = makeJob { |     value = makeJob { | ||||||
|       description = "PR ${id}: ${info.title}"; |       description = "PR ${id}: ${info.title}"; | ||||||
|       flake = "git+ssh://gitea@nayeonie.com:2222/${info.head.repo.full_name}?ref=${info.head.ref}"; |       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; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user