{ 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; }; }