hydra-config/jobsets.nix

42 lines
1.0 KiB
Nix
Raw Normal View History

2019-09-12 00:58:00 +02:00
{ pkgs ? import <nixpkgs> {} }:
let
jobsets = {
spacemsg = {
enabled = 1;
hidden = false;
description = "Astro's HQ IoT stuff";
2019-09-12 02:27:49 +02:00
nixexprinput = "hydra-config";
2019-09-12 01:01:31 +02:00
nixexprpath = "spacemsg.nix";
2019-09-12 00:58:00 +02:00
checkinterval = 300;
schedulingshares = 100;
enableemail = true;
emailoverride = "astro@spaceboyz.net";
keepnr = 3;
inputs = {
2019-09-12 03:14:22 +02:00
spacemsg = {
type = "git";
value = "https://github.com/astro/spacemsg.git master 1";
emailresponsible = false;
};
2019-09-12 02:27:49 +02:00
hydra-config = {
2019-09-12 00:58:00 +02:00
type = "git";
value = "https://gitea.c3d2.de/C3D2/hydra-config.git master 1";
emailresponsible = false;
};
nixpkgs = {
type = "git";
value = "git://github.com/NixOS/nixpkgs.git release-19.03";
emailresponsible = false;
};
};
};
};
jobsetsJson = pkgs.writeText "jobsets.json" (builtins.toJSON jobsets );
in
{
2019-09-12 02:39:36 +02:00
jobsets = pkgs.runCommand "jobsets.json" {} ''
cp ${jobsetsJson} $out
2019-09-12 00:58:00 +02:00
'';
}