2019-09-12 00:58:00 +02:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
let
|
2019-09-12 23:01:05 +02:00
|
|
|
mkJobset = { description, nixexprpath, gitUrls }: {
|
|
|
|
inherit description nixexprpath;
|
|
|
|
enabled = 1;
|
|
|
|
hidden = false;
|
|
|
|
nixexprinput = "hydra-config";
|
|
|
|
checkinterval = 300;
|
|
|
|
schedulingshares = 100;
|
|
|
|
enableemail = true;
|
2019-09-12 23:02:31 +02:00
|
|
|
emailoverride = "";
|
2019-09-12 23:01:05 +02:00
|
|
|
keepnr = 16;
|
|
|
|
inputs = {
|
|
|
|
hydra-config = {
|
|
|
|
type = "git";
|
|
|
|
value = "https://gitea.c3d2.de/C3D2/hydra-config.git master 1";
|
|
|
|
emailresponsible = false;
|
|
|
|
};
|
|
|
|
nixpkgs = {
|
|
|
|
type = "git";
|
2019-10-10 23:42:09 +02:00
|
|
|
value = "https://github.com/NixOS/nixpkgs.git release-19.09 1";
|
2019-09-12 23:01:05 +02:00
|
|
|
emailresponsible = false;
|
|
|
|
};
|
|
|
|
} // (builtins.mapAttrs (_: gitUrl: {
|
|
|
|
type = "git";
|
|
|
|
value = gitUrl;
|
|
|
|
emailresponsible = false;
|
|
|
|
}) gitUrls);
|
|
|
|
};
|
2019-09-12 00:58:00 +02:00
|
|
|
jobsets = {
|
2019-09-13 00:10:53 +02:00
|
|
|
# TODO: host tests
|
2019-09-12 23:01:05 +02:00
|
|
|
spacemsg = mkJobset {
|
2019-09-12 00:58:00 +02:00
|
|
|
description = "Astro's HQ IoT stuff";
|
2019-09-12 01:01:31 +02:00
|
|
|
nixexprpath = "spacemsg.nix";
|
2019-09-12 23:01:05 +02:00
|
|
|
gitUrls = {
|
|
|
|
spacemsg = "https://github.com/astro/spacemsg.git master 1";
|
2019-09-12 00:58:00 +02:00
|
|
|
};
|
|
|
|
};
|
2019-09-12 03:29:00 +02:00
|
|
|
|
2019-09-12 23:01:05 +02:00
|
|
|
yammat = mkJobset {
|
2019-09-12 03:29:00 +02:00
|
|
|
description = "Matemat by nek0";
|
|
|
|
nixexprpath = "yammat.nix";
|
2019-09-12 23:01:05 +02:00
|
|
|
gitUrls = {
|
|
|
|
yammat = "https://github.com/nek0/yammat.git master 1";
|
2019-09-12 03:29:00 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-09-12 23:01:05 +02:00
|
|
|
tigger = mkJobset {
|
2019-09-12 16:20:39 +02:00
|
|
|
description = "XMPP MUC bot";
|
|
|
|
nixexprpath = "tigger.nix";
|
2019-09-12 23:01:05 +02:00
|
|
|
gitUrls = {
|
|
|
|
tigger = "https://github.com/astro/tigger.git master 1";
|
2019-09-12 16:20:39 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-09-13 00:12:11 +02:00
|
|
|
slidenado = mkJobset {
|
2019-09-12 17:14:55 +02:00
|
|
|
description = "CmS slide generator";
|
|
|
|
nixexprpath = "slidenado.nix";
|
2019-09-12 23:01:05 +02:00
|
|
|
gitUrls = {
|
|
|
|
slidenado = "https://github.com/c3d2/slidenado.git master 1";
|
2019-09-12 17:14:55 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-09-13 00:12:11 +02:00
|
|
|
pile = mkJobset {
|
2019-09-13 00:10:53 +02:00
|
|
|
description = "Programatically Illuminated Lighting Environment";
|
|
|
|
nixexprpath = "pile.nix";
|
|
|
|
gitUrls = {
|
|
|
|
pile = "https://github.com/astro/pile.git master 1";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-09-24 20:40:29 +02:00
|
|
|
gnunet = mkJobset {
|
|
|
|
description = "gnu:net overlay";
|
|
|
|
nixexprpath = "gnunet.nix";
|
|
|
|
gitUrls = {
|
|
|
|
nixpkgs-gnunet = "https://ulrich.earth/code/nixpkgs-gnunet/ master 1";
|
|
|
|
};
|
|
|
|
};
|
2019-10-07 00:29:22 +02:00
|
|
|
|
|
|
|
ticker = mkJobset {
|
|
|
|
description = "Calendar aggregation";
|
2019-10-07 00:32:55 +02:00
|
|
|
nixexprpath = "ticker.nix";
|
2019-10-07 00:29:22 +02:00
|
|
|
gitUrls = {
|
|
|
|
ticker = "https://gitea.c3d2.de/astro/ticker.git master 1";
|
2019-10-26 01:18:19 +02:00
|
|
|
mozillaOverlay = "https://github.com/mozilla/nixpkgs-mozilla.git master 1";
|
2019-10-07 00:29:22 +02:00
|
|
|
};
|
2019-10-07 00:32:18 +02:00
|
|
|
};
|
2019-10-10 23:37:35 +02:00
|
|
|
|
|
|
|
frpball = mkJobset {
|
|
|
|
description = "Functional reactive programming ball game";
|
|
|
|
nixexprpath = "frpball.nix";
|
|
|
|
gitUrls = {
|
|
|
|
frpball = "https://github.com/nek0/frpball.git master 1";
|
|
|
|
};
|
|
|
|
};
|
2019-10-26 01:22:48 +02:00
|
|
|
|
|
|
|
tracer = mkJobset {
|
|
|
|
description = "Haskell game";
|
|
|
|
nixexprpath = "tracer.nix";
|
|
|
|
gitUrls = {
|
|
|
|
tracer = "https://github.com/nek0/tracer.git master 1";
|
|
|
|
};
|
|
|
|
};
|
2019-11-03 22:38:47 +01:00
|
|
|
|
|
|
|
dn42-registry = mkJobset {
|
|
|
|
description = "dn42 registry checks";
|
|
|
|
nixexprpath = "dn42-registry.nix";
|
|
|
|
gitUrls = {
|
|
|
|
registry = "https://git.dn42.us/dn42/registry.git";
|
|
|
|
};
|
|
|
|
};
|
2019-09-12 00:58:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
}
|