2024-07-04 11:54:50 +00:00
|
|
|
{ lib, config, ... }:
|
|
|
|
let
|
2024-07-07 17:18:08 +00:00
|
|
|
inherit (lib) mkEnableOption mkIf types mkOption tf;
|
2024-07-04 11:54:50 +00:00
|
|
|
cfg = config.bagel.hydra;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.bagel.hydra = {
|
|
|
|
enable = mkEnableOption "the Hydra jobsets";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
terraform.required_providers.hydra = {
|
|
|
|
version = "~> 0.1";
|
|
|
|
source = "DeterminateSystems/hydra";
|
|
|
|
};
|
|
|
|
|
2024-07-07 17:18:08 +00:00
|
|
|
resource.secret_resource.hydra_password.lifecycle.prevent_destroy = true;
|
|
|
|
|
2024-07-04 11:54:50 +00:00
|
|
|
provider.hydra = {
|
2024-07-07 22:01:24 +00:00
|
|
|
host = "https://hydra.forkos.org";
|
2024-07-07 17:18:08 +00:00
|
|
|
username = "terraform";
|
|
|
|
password = tf.ref "resource.secret_resource.hydra_password.value";
|
2024-07-04 11:54:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
resource.hydra_project.forkos = {
|
|
|
|
name = "forkos";
|
|
|
|
display_name = "ForkOS";
|
|
|
|
description = "ForkOS packages collection";
|
|
|
|
homepage = "https://cl.forkos.org";
|
2024-07-07 16:44:17 +00:00
|
|
|
owner = "terraform";
|
2024-07-04 11:54:50 +00:00
|
|
|
enabled = true;
|
|
|
|
visible = true;
|
|
|
|
};
|
|
|
|
|
2024-07-21 17:16:20 +00:00
|
|
|
resource.hydra_jobset.k900-experiments = {
|
2024-08-12 17:36:50 +00:00
|
|
|
project = tf.ref "resource.hydra_project.forkos.name";
|
2024-07-21 17:16:20 +00:00
|
|
|
state = "enabled";
|
|
|
|
visible = true;
|
|
|
|
name = "nixpkgs-experiments";
|
|
|
|
type = "legacy";
|
|
|
|
description = "experiments branch to test things for K900";
|
|
|
|
|
|
|
|
nix_expression = {
|
2024-07-21 17:41:17 +00:00
|
|
|
file = "nixos/release.nix";
|
2024-07-21 17:16:20 +00:00
|
|
|
input = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
check_interval = 0;
|
|
|
|
scheduling_shares = 3000;
|
|
|
|
keep_evaluations = 3;
|
|
|
|
|
|
|
|
email_notifications = false;
|
|
|
|
|
|
|
|
input = [
|
|
|
|
{
|
|
|
|
name = "nixpkgs";
|
|
|
|
type = "git";
|
2024-08-30 16:22:09 +00:00
|
|
|
value = "https://github.com/K900/nixpkgs f0b00bb8b722a5e270d0ee819b1a3b12e6fea162";
|
2024-07-21 17:16:20 +00:00
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "officialRelease";
|
|
|
|
type = "boolean";
|
|
|
|
value = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "supportedSystems";
|
|
|
|
type = "nix";
|
|
|
|
value = ''[ "x86_64-linux" ]'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-07-04 11:54:50 +00:00
|
|
|
resource.hydra_jobset.raito-nixos-rolling-small = {
|
2024-08-12 17:36:50 +00:00
|
|
|
project = tf.ref "resource.hydra_project.forkos.name";
|
2024-07-04 11:54:50 +00:00
|
|
|
state = "enabled";
|
|
|
|
visible = true;
|
|
|
|
name = "raito-nixos-rolling-small";
|
|
|
|
type = "legacy";
|
|
|
|
description = "master branch for raito-nixos";
|
|
|
|
|
|
|
|
nix_expression = {
|
|
|
|
file = "pkgs/top-level/release.nix";
|
|
|
|
input = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
check_interval = 0;
|
|
|
|
scheduling_shares = 3000;
|
|
|
|
keep_evaluations = 3;
|
|
|
|
|
|
|
|
email_notifications = false;
|
|
|
|
|
|
|
|
input = [
|
|
|
|
{
|
|
|
|
name = "nixpkgs";
|
|
|
|
type = "git";
|
|
|
|
value = "https://cl.forkos.org/nixpkgs";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "officialRelease";
|
|
|
|
type = "boolean";
|
|
|
|
value = "false";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "supportedSystems";
|
|
|
|
type = "nix";
|
|
|
|
value = ''[ "x86_64-linux" ]'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-09 23:57:12 +00:00
|
|
|
|
|
|
|
resource.hydra_jobset.delroth-nixpkgs-staging-small = {
|
2024-08-12 17:36:50 +00:00
|
|
|
project = tf.ref "resource.hydra_project.forkos.name";
|
2024-07-09 23:57:12 +00:00
|
|
|
state = "enabled";
|
|
|
|
visible = true;
|
|
|
|
name = "delroth-nixpkgs-staging-small";
|
|
|
|
type = "legacy";
|
|
|
|
description = "small eval of nixpkgs staging for testing";
|
|
|
|
|
|
|
|
nix_expression = {
|
|
|
|
file = "pkgs/top-level/release-small.nix";
|
|
|
|
input = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
check_interval = 0;
|
|
|
|
scheduling_shares = 3000;
|
|
|
|
keep_evaluations = 3;
|
|
|
|
|
|
|
|
email_notifications = false;
|
|
|
|
|
|
|
|
input = [
|
|
|
|
{
|
|
|
|
name = "nixpkgs";
|
|
|
|
type = "git";
|
|
|
|
value = "https://github.com/nixos/nixpkgs staging";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "officialRelease";
|
|
|
|
type = "boolean";
|
|
|
|
value = "false";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "supportedSystems";
|
|
|
|
type = "nix";
|
|
|
|
value = ''[ "x86_64-linux" ]'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-10 16:52:43 +00:00
|
|
|
|
|
|
|
resource.hydra_project.infra = {
|
|
|
|
name = "infra";
|
|
|
|
display_name = "ForkOS Infra";
|
|
|
|
description = "ForkOS infra repository";
|
|
|
|
homepage = "https://git.lix.system/the-distro/infra";
|
|
|
|
owner = "terraform";
|
|
|
|
enabled = true;
|
|
|
|
visible = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
resource.hydra_jobset.infra_main = {
|
2024-08-12 17:36:50 +00:00
|
|
|
project = tf.ref "resource.hydra_project.infra.name";
|
2024-07-10 16:52:43 +00:00
|
|
|
state = "enabled";
|
|
|
|
visible = true;
|
|
|
|
name = "main";
|
|
|
|
type = "flake";
|
|
|
|
description = "main branch for the infra repo";
|
|
|
|
|
|
|
|
flake_uri = "git+https://git.lix.systems/the-distro/infra";
|
|
|
|
|
|
|
|
check_interval = 600;
|
|
|
|
scheduling_shares = 3000;
|
|
|
|
keep_evaluations = 5;
|
|
|
|
|
|
|
|
email_notifications = false;
|
|
|
|
};
|
2024-07-17 11:34:10 +00:00
|
|
|
|
|
|
|
resource.hydra_project.hydra = {
|
|
|
|
name = "hydra";
|
|
|
|
display_name = "ForkOS Hydra";
|
|
|
|
description = "ForkOS hydra fork";
|
|
|
|
homepage = "https://git.lix.system/lix-project/hydra";
|
|
|
|
owner = "terraform";
|
|
|
|
enabled = true;
|
|
|
|
visible = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
resource.hydra_jobset.hydra_main = {
|
2024-08-12 17:36:50 +00:00
|
|
|
project = tf.ref "resource.hydra_project.hydra.name";
|
2024-07-17 11:34:10 +00:00
|
|
|
state = "enabled";
|
|
|
|
visible = true;
|
|
|
|
name = "main";
|
|
|
|
type = "flake";
|
|
|
|
description = "main branch for the hydra repo";
|
|
|
|
|
|
|
|
flake_uri = "git+https://git.lix.systems/lix-project/hydra";
|
|
|
|
|
|
|
|
check_interval = 600;
|
|
|
|
scheduling_shares = 3000;
|
|
|
|
keep_evaluations = 5;
|
|
|
|
|
|
|
|
email_notifications = false;
|
|
|
|
};
|
2024-07-19 23:18:54 +00:00
|
|
|
|
2024-07-26 19:17:55 +00:00
|
|
|
resource.hydra_jobset.nixos-staging-next-small = {
|
2024-08-12 17:36:50 +00:00
|
|
|
project = tf.ref "resource.hydra_project.forkos.name";
|
2024-07-26 19:17:55 +00:00
|
|
|
state = "enabled";
|
|
|
|
visible = true;
|
|
|
|
name = "nixos-staging-next-small";
|
|
|
|
type = "legacy";
|
|
|
|
description = "nixos jobset for the staging-next branch";
|
|
|
|
|
|
|
|
nix_expression = {
|
|
|
|
file = "nixos/release-small.nix";
|
|
|
|
input = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
check_interval = 0;
|
|
|
|
scheduling_shares = 3000;
|
|
|
|
keep_evaluations = 3;
|
|
|
|
|
|
|
|
email_notifications = false;
|
|
|
|
|
|
|
|
input = [
|
|
|
|
{
|
|
|
|
name = "nixpkgs";
|
|
|
|
type = "git";
|
|
|
|
value = "https://cl.forkos.org/nixpkgs staging-next";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "officialRelease";
|
|
|
|
type = "boolean";
|
|
|
|
value = "false";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "supportedSystems";
|
|
|
|
type = "nix";
|
|
|
|
value = ''[ "x86_64-linux" ]'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
resource.hydra_jobset.nixpkgs-staging-next = {
|
2024-08-12 17:36:50 +00:00
|
|
|
project = tf.ref "resource.hydra_project.forkos.name";
|
2024-07-19 23:18:54 +00:00
|
|
|
state = "enabled";
|
|
|
|
visible = true;
|
2024-07-26 19:17:55 +00:00
|
|
|
name = "nixpkgs-staging-next";
|
|
|
|
type = "legacy";
|
|
|
|
description = "nixpkgs jobset for the staging-next branch";
|
|
|
|
|
|
|
|
nix_expression = {
|
|
|
|
file = "pkgs/top-level/release.nix";
|
|
|
|
input = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
check_interval = 0;
|
|
|
|
scheduling_shares = 3000;
|
|
|
|
keep_evaluations = 3;
|
|
|
|
|
|
|
|
email_notifications = false;
|
|
|
|
|
|
|
|
input = [
|
|
|
|
{
|
|
|
|
name = "nixpkgs";
|
|
|
|
type = "git";
|
|
|
|
value = "https://cl.forkos.org/nixpkgs staging-next";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "officialRelease";
|
|
|
|
type = "boolean";
|
|
|
|
value = "false";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "supportedSystems";
|
|
|
|
type = "nix";
|
|
|
|
value = ''[ "x86_64-linux" ]'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-28 21:40:36 +00:00
|
|
|
|
|
|
|
resource.hydra_jobset.nixos-main = {
|
2024-08-12 17:36:50 +00:00
|
|
|
project = tf.ref "resource.hydra_project.forkos.name";
|
2024-07-28 21:40:36 +00:00
|
|
|
state = "enabled";
|
|
|
|
visible = true;
|
|
|
|
name = "nixos-main";
|
|
|
|
type = "legacy";
|
|
|
|
description = "nixos jobset for the main branch";
|
|
|
|
|
|
|
|
nix_expression = {
|
|
|
|
file = "nixos/release-combined.nix";
|
|
|
|
input = "nixpkgs";
|
|
|
|
};
|
|
|
|
|
|
|
|
check_interval = 0;
|
|
|
|
scheduling_shares = 3000;
|
|
|
|
keep_evaluations = 3;
|
|
|
|
|
|
|
|
email_notifications = false;
|
|
|
|
|
|
|
|
input = [
|
|
|
|
{
|
|
|
|
name = "nixpkgs";
|
|
|
|
type = "git";
|
|
|
|
value = "https://cl.forkos.org/nixpkgs main";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "officialRelease";
|
|
|
|
type = "boolean";
|
|
|
|
value = "false";
|
|
|
|
notify_committers = false;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "supportedSystems";
|
|
|
|
type = "nix";
|
|
|
|
value = ''[ "x86_64-linux" ]'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2024-07-04 11:54:50 +00:00
|
|
|
};
|
|
|
|
}
|