Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules/nixos/buildbot-repo-allowlist: add microvm.nix #1598

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ See [here](./infrastructure.md#continuous-integration) for details about the har

_Buildbot is the only CI system that supports pull requests from forked repositories._

To enable buildbot add the [`nix-community-buildbot`](https://github.com/topics/nix-community-buildbot) topic to the repository.

_Newly enabled repos are imported into buildbot twice a day, you can also ask the admins to trigger an import manually._
To enable buildbot add the repo in this [file](https://github.com/nix-community/infra/blob/master/modules/nixos/buildbot-repo-allowlist.nix).

#### Hercules

Expand Down
23 changes: 23 additions & 0 deletions modules/nixos/buildbot-repo-allowlist.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[
"qowoz/microvm.nix"
"nix-community/authentik-nix"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the github topic less work overall than having this list synchronously managed?

"nix-community/autofirma-nix"
"nix-community/dream2nix"
"nix-community/ethereum.nix"
"nix-community/infra"
"nix-community/lanzaboote"
"nix-community/neovim-nightly-overlay"
"nix-community/nix-direnv"
"nix-community/nix-index"
"nix-community/nix4nvchad"
"nix-community/NixNG"
"nix-community/nixos-facter"
"nix-community/nixos-facter-modules"
"nix-community/nixos-generators"
"nix-community/nixos-images"
"nix-community/nixpkgs-update"
"nix-community/nixpkgs-xr"
"nix-community/nixvim"
"nix-community/raspberry-pi-nix"
"nix-community/srvos"
]
3 changes: 2 additions & 1 deletion modules/nixos/buildbot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ in
webhookSecretFile = config.sops.secrets.buildbot-github-webhook-secret.path;
oauthSecretFile = config.sops.secrets.buildbot-github-oauth-secret.path;
oauthId = "Iv23liN9rjd1Bm3bvYKZ";
topic = "nix-community-buildbot";
topic = null;
repoAllowlist = import ./buildbot-repo-allowlist.nix;
};
};

Expand Down
2 changes: 1 addition & 1 deletion modules/nixos/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
./security.nix
./sops-nix.nix
./telegraf.nix
./update.nix
#./update.nix
./users.nix
inputs.srvos.nixosModules.server
];
Expand Down
27 changes: 0 additions & 27 deletions terraform/hydra-projects.tf
Original file line number Diff line number Diff line change
Expand Up @@ -69,30 +69,3 @@ resource "hydra_project" "simple_nixos_mailserver" {
value = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver"
}
}

resource "hydra_project" "microvm_nix" {
name = "microvm-nix"
display_name = "MicroVM.nix"
description = "NixOS MicroVMs"
homepage = "https://github.com/astro/microvm.nix"
owner = "admin"
enabled = true
visible = true
}

resource "hydra_jobset" "microvm_nix" {
project = hydra_project.microvm_nix.name
state = "disabled"
visible = true
name = "main"
type = "flake"
description = "main branch"

flake_uri = "github:astro/microvm.nix"

check_interval = 1800
scheduling_shares = 3000
keep_evaluations = 1

email_notifications = false
}