about summary refs log tree commit diff
path: root/nixos/modules/services/monitoring/prometheus/exporters/minio.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/minio.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/minio.nix')
-rw-r--r--nixos/modules/services/monitoring/prometheus/exporters/minio.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/minio.nix b/nixos/modules/services/monitoring/prometheus/exporters/minio.nix
index e1edd364c8fcb..8faff5908b8a9 100644
--- a/nixos/modules/services/monitoring/prometheus/exporters/minio.nix
+++ b/nixos/modules/services/monitoring/prometheus/exporters/minio.nix
@@ -1,9 +1,14 @@
 { config, lib, pkgs, options, ... }:
 
-with lib;
-
 let
   cfg = config.services.prometheus.exporters.minio;
+  inherit (lib)
+    mkOption
+    types
+    optionalString
+    concatStringsSep
+    escapeShellArg
+    ;
 in
 {
   port = 9290;