chore(ops/builderball): drop
This is unused. Change-Id: Ida0764680ff128d80580418a8b1a8bc6576c0f07 Reviewed-on: https://cl.snix.dev/c/snix/+/30081 Tested-by: besadii Autosubmit: Florian Klink <flokli@flokli.de> Reviewed-by: Ryan Lahfa <masterancpp@gmail.com>
This commit is contained in:
parent
dd3bd7563d
commit
bc62fc0354
9 changed files with 0 additions and 584 deletions
|
|
@ -1,50 +0,0 @@
|
|||
# Configuration for builderball, the Nix cache proxy for substituting between
|
||||
# builders.
|
||||
#
|
||||
# This is in experimental state, not yet supporting any dynamic private builders.
|
||||
{ depot, config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.services.depot.builderball;
|
||||
description = "Nix cache proxy for distribution between builders";
|
||||
hostname = config.networing.hostName;
|
||||
in
|
||||
{
|
||||
options.services.depot.builderball = {
|
||||
enable = lib.mkEnableOption description;
|
||||
|
||||
caches = lib.mkOption {
|
||||
type = with lib.types; listOf str;
|
||||
description = "Public addresses of caches to use";
|
||||
|
||||
default = [
|
||||
"nevsky.cache.tvl.fyi"
|
||||
];
|
||||
};
|
||||
|
||||
port = lib.mkOption {
|
||||
type = lib.types.int;
|
||||
description = "port on which to listen locally";
|
||||
default = 26862; # bounc
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
systemd.services.builderball =
|
||||
let
|
||||
caches = lib.concatStringsSep " " (map (c: "-cache https://${c}") cfg.caches);
|
||||
in
|
||||
{
|
||||
inherit description;
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
wants = [ "network-online.target" ];
|
||||
after = [ "network-online.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${depot.ops.builderball}/bin/builderball ${caches} -port ${toString cfg.port} -debug";
|
||||
DynamicUser = true;
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue