Skip to content

Commit

Permalink
nix: enable buildbot badges
Browse files Browse the repository at this point in the history
Just enough config to make this easily extensible in the future.
  • Loading branch information
zimbatm committed Jan 30, 2024
1 parent 6552835 commit df6b45b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions nix/master.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
}:
let
cfg = config.services.buildbot-nix.master;

# The start of a mergeable settings infrastructure.
www_config = {
plugins = {
# https://docs.buildbot.net/current/manual/configuration/www.html#badges
badges = { };
};
};
in
{
options = {
Expand Down Expand Up @@ -145,6 +153,7 @@ in
extraImports = ''
from datetime import timedelta
from buildbot_nix import GithubConfig, NixConfigurator, CachixConfig
import json
'';
configurators = [
''
Expand Down Expand Up @@ -183,9 +192,19 @@ in
ps.treq
ps.psycopg2
(ps.toPythonModule pkgs.buildbot-worker)
pkgs.buildbot-plugins.badges
pkgs.buildbot-plugins.www-react
(pkgs.python3.pkgs.callPackage ../default.nix { })
];

extraConfig = ''
# WOOT
c['www'] = json.loads(
''''
${builtins.toJSON www_config}
''''
)
'';
};

systemd.services.buildbot-master = {
Expand Down

0 comments on commit df6b45b

Please sign in to comment.