summaryrefslogtreecommitdiff
path: root/modules/buildbot.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildbot.nix')
-rw-r--r--modules/buildbot.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/buildbot.nix b/modules/buildbot.nix
new file mode 100644
index 0000000..6ace501
--- /dev/null
+++ b/modules/buildbot.nix
@@ -0,0 +1,27 @@
+{
+ config,
+ lib,
+ ...
+}:
+{
+ services.buildbot-master = {
+ enable = true;
+ home = "/var/lib/buildbot";
+ title = "KJ's NixOS buildbot";
+ port = 3214;
+ listenAddress = "::1";
+ buildbotUrl = "https://buildbot.kjtsanaktsidis.id.au/";
+ };
+
+ services.nginx = {
+ virtualHosts."buildbot.kjtsanaktsidis.id.au" = {
+ forceSSL = true;
+ enableACME = true;
+ locations = {
+ "/" = {
+ proxyPass = "http://localhost:${builtins.toString config.services.buildbot-master.port}";
+ };
+ };
+ };
+ };
+}