forked from the-distro/infra
20 lines
342 B
Nix
20 lines
342 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|