File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 5
5
} :
6
6
let
7
7
cfg = config . services . buildbot-nix . master ;
8
+
9
+ # The start of a mergeable settings infrastructure.
10
+ www_config = {
11
+ plugins = {
12
+ # https://docs.buildbot.net/current/manual/configuration/www.html#badges
13
+ badges = { } ;
14
+ } ;
15
+ } ;
8
16
in
9
17
{
10
18
options = {
145
153
extraImports = ''
146
154
from datetime import timedelta
147
155
from buildbot_nix import GithubConfig, NixConfigurator, CachixConfig
156
+ import json
148
157
'' ;
149
158
configurators = [
150
159
''
183
192
ps . treq
184
193
ps . psycopg2
185
194
( ps . toPythonModule pkgs . buildbot-worker )
195
+ pkgs . buildbot-plugins . badges
186
196
pkgs . buildbot-plugins . www-react
187
197
( pkgs . python3 . pkgs . callPackage ../default.nix { } )
188
198
] ;
199
+
200
+ extraConfig = ''
201
+ # WOOT
202
+ c['www'] = json.loads(
203
+ ''' '
204
+ ${ builtins . toJSON www_config }
205
+ ''' '
206
+ )
207
+ '' ;
189
208
} ;
190
209
191
210
systemd . services . buildbot-master = {
You can’t perform that action at this time.
0 commit comments