nixos/modules/info/monitoring.nix

28 lines
601 B
Nix

{ config, lib, ... }:
let
inherit (lib) mkEnableOption mkOption types;
in
{
options.monitoring = {
enable = mkEnableOption "Monitoring prometheus de la machine.";
nginx = {
enable = mkOption {
type = types.bool;
example = true;
description = "Monitoring de Nginx par prometheus.";
default = false;
};
};
comin = {
enable = mkOption {
type = types.bool;
example = true;
description = "Monitoring de Comin (l'auto-update) par prometheus.";
default = config.autoUpdate.enable;
};
};
};
}