about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
diff options
context:
space:
mode:
authorPyrox <pyrox@pyrox.dev>2024-04-24 14:41:17 -0400
committerPyrox <pyrox@pyrox.dev>2024-04-24 14:42:16 -0400
commitae359d1ef24a2d1d816404159787ca836ac9f551 (patch)
treed69d5b609915628b8837312f23e1c0d8f8e28c9c /nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
parent9d9758f5486afa3abe89a2e1c2baaa4e542929b3 (diff)
nixos/prometheus/exporters: Remove all `with lib;` usage
Fixes issues described in #208242 for this part of the nixpkgs tree.

There are no behavioral changes in this, it only adjusts the code so
that it is easier to understand.
Diffstat (limited to 'nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix b/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
index 80d0cfcc5e451..33a1fdc528053 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/blackbox.nix
@@ -1,10 +1,14 @@
 { config, lib, pkgs, options, ... }:
 
-with lib;
-
 let
   logPrefix = "services.prometheus.exporter.blackbox";
   cfg = config.services.prometheus.exporters.blackbox;
+  inherit (lib)
+    mkOption
+    types
+    concatStringsSep
+    escapeShellArg
+    ;
 
   # This ensures that we can deal with string paths, path types and
   # store-path strings with context.