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 = {
|
|
|
|
host = "https://hydra.bagel.delroth.net";
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
resource.hydra_jobset.raito-nixos-rolling-small = {
|
|
|
|
project = config.resource.hydra_project.forkos.name;
|
|
|
|
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" ]'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|