2024-03-16 11:52:48 +10:00
|
|
|
{ inputs, lib, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
inputs.comin.nixosModules.comin
|
|
|
|
];
|
|
|
|
|
2024-03-22 12:16:20 +10:00
|
|
|
services.telegraf.extraConfig.inputs.http = {
|
|
|
|
urls = [ "http://localhost:4242/status" ];
|
|
|
|
data_format = "json";
|
|
|
|
name_override = "comin";
|
|
|
|
};
|
|
|
|
|
2024-03-16 11:52:48 +10:00
|
|
|
services.comin = {
|
|
|
|
enable = lib.mkDefault false;
|
|
|
|
remotes = [
|
|
|
|
{
|
|
|
|
url = "https://github.com/nix-community/infra.git";
|
|
|
|
name = "origin";
|
|
|
|
poller.period = 300; # every 5 minutes
|
|
|
|
branches.main.name = "master";
|
|
|
|
branches.testing.name = ""; # disable testing branch
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|