diff options
Diffstat (limited to 'nixos/modules/services/networking/mtr-exporter.nix')
-rw-r--r-- | nixos/modules/services/networking/mtr-exporter.nix | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/nixos/modules/services/networking/mtr-exporter.nix b/nixos/modules/services/networking/mtr-exporter.nix index 38bc0401a7e65..2b96cb2491acd 100644 --- a/nixos/modules/services/networking/mtr-exporter.nix +++ b/nixos/modules/services/networking/mtr-exporter.nix @@ -4,7 +4,7 @@ let inherit (lib) maintainers types literalExpression escapeShellArg escapeShellArgs - mkEnableOption mkOption mkRemovedOptionModule mkIf mdDoc + mkEnableOption mkOption mkRemovedOptionModule mkIf mkPackageOption optionalString concatMapStrings concatStringsSep; cfg = config.services.mtr-exporter; @@ -21,25 +21,25 @@ in { options = { services = { mtr-exporter = { - enable = mkEnableOption (mdDoc "a Prometheus exporter for MTR"); + enable = mkEnableOption "a Prometheus exporter for MTR"; address = mkOption { type = types.str; default = "127.0.0.1"; - description = lib.mdDoc "Listen address for MTR exporter."; + description = "Listen address for MTR exporter."; }; port = mkOption { type = types.port; default = 8080; - description = mdDoc "Listen port for MTR exporter."; + description = "Listen port for MTR exporter."; }; extraFlags = mkOption { type = types.listOf types.str; default = []; example = ["-flag.deprecatedMetrics"]; - description = mdDoc '' + description = '' Extra command line options to pass to MTR exporter. ''; }; @@ -49,32 +49,32 @@ in { mtrPackage = mkPackageOption pkgs "mtr" { }; jobs = mkOption { - description = mdDoc "List of MTR jobs. Will be added to /etc/mtr-exporter.conf"; + description = "List of MTR jobs. Will be added to /etc/mtr-exporter.conf"; type = types.nonEmptyListOf (types.submodule { options = { name = mkOption { type = types.str; - description = mdDoc "Name of ICMP pinging job."; + description = "Name of ICMP pinging job."; }; address = mkOption { type = types.str; example = "host.example.org:1234"; - description = mdDoc "Target address for MTR client."; + description = "Target address for MTR client."; }; schedule = mkOption { type = types.str; default = "@every 60s"; example = "@hourly"; - description = mdDoc "Schedule of MTR checks. Also accepts Cron format."; + description = "Schedule of MTR checks. Also accepts Cron format."; }; flags = mkOption { type = with types; listOf str; default = []; example = ["-G1"]; - description = mdDoc "Additional flags to pass to MTR."; + description = "Additional flags to pass to MTR."; }; }; }); |