infra/services/monitoring/pyroscope/default.nix

20 lines
342 B
Nix
Raw Normal View History

{ lib, config, ... }:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.bagel.services.pyroscope;
in
{
options.bagel.services.pyroscope = {
enable = mkEnableOption "pyroscope server";
};
# TODO: send me to nixpkgs
imports = [
./module.nix
];
config = mkIf cfg.enable {
services.pyroscope.enable = true;
};
}