{ lib, config, ... }: with lib; let cfg = config.services.brook; in { options.services.brook.metrics = { enable = mkEnableOption "brook-web metrics backend"; port = mkOption { type = types.int; description = '' Port to bind the brook-metrics backend server to. ''; }; path = mkOption { type = types.str; description = '' Set the BROOK_METRICS_PATH environment variable to let brook-metrics know where to export the csv output to. ''; }; }; config = mkIf cfg.enable { }; }