diff options
author | sefidel <contact@sefidel.net> | 2024-02-10 02:26:52 +0900 |
---|---|---|
committer | sefidel <contact@sefidel.net> | 2024-02-10 07:42:17 +0900 |
commit | 5b20c2cd2d26554945b8f4c2cec27b36fdbe6f3d (patch) | |
tree | a1b74d13aee091e7128dfdf5f1e3708bedce653a /hydra | |
parent | 854fe552df5e51dd0622fd2ad48a30a31cf3665f (diff) | |
download | nixrc-5b20c2cd2d26554945b8f4c2cec27b36fdbe6f3d.tar.gz nixrc-5b20c2cd2d26554945b8f4c2cec27b36fdbe6f3d.zip |
feat(hydra): initial configuration
Diffstat (limited to 'hydra')
-rw-r--r-- | hydra/default.nix | 1 | ||||
-rw-r--r-- | hydra/jobsets.nix | 34 | ||||
-rw-r--r-- | hydra/spec.json | 24 |
3 files changed, 59 insertions, 0 deletions
diff --git a/hydra/default.nix b/hydra/default.nix new file mode 100644 index 0000000..b46ba3d --- /dev/null +++ b/hydra/default.nix @@ -0,0 +1 @@ +{ nixrc }: (import nixrc).hydraJobs diff --git a/hydra/jobsets.nix b/hydra/jobsets.nix new file mode 100644 index 0000000..07c0fab --- /dev/null +++ b/hydra/jobsets.nix @@ -0,0 +1,34 @@ +{ nixpkgs, ... }: + +let + pkgs = import nixpkgs {}; + + jobsets = { + main = { + enabled = 1; + hidden = false; + description = "main branch"; + nixexprinput = "nixrc"; + nixexprpath = "hydra/default.nix"; + checkinterval = 300; + schedulingshares = 100; + enableemail = false; + emailoverride = ""; + keepnr = 1; + inputs = { + nixrc = { + type = "git"; + value = "https://git.exotic.sh/pub/sefidel/nixrc main"; + emailresponsible = false; + }; + nixpkgs = { + type = "git"; + value = "https://github.com/NixOS/nixpkgs.git nixos-unstable"; + emailresponsible = false; + }; + }; + }; + }; +in { + jobsets = pkgs.writeText "jobsets.json" (builtins.toJSON jobsets); +} diff --git a/hydra/spec.json b/hydra/spec.json new file mode 100644 index 0000000..a68a743 --- /dev/null +++ b/hydra/spec.json @@ -0,0 +1,24 @@ +{ + "enabled": 1, + "hidden": false, + "description": "Jobsets", + "nixexprinput": "nixrc", + "nixexprpath": "hydra/jobsets.nix", + "checkinterval": 300, + "schedulingshares": 100, + "enableemail": false, + "emailoverride": "", + "keepnr": 1, + "inputs": { + "nixrc": { + "type": "git", + "value": "https://git.exotic.sh/pub/sefidel/nixrc main", + "emailresponsible": false + }, + "nixpkgs": { + "type": "git", + "value": "https://github.com/NixOS/nixpkgs.git nixos-unstable", + "emailresponsible": false + } + } +} |