forked from the-distro/infra
Raito Bezarius
db46b01ae9
Vendored for the time being. See https://cl.forkos.org/c/nixpkgs/+/181 for upstreaming properly. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
19 lines
342 B
Nix
19 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;
|
|
};
|
|
}
|