{ 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}"; }; }; }; }; }