diff options
author | Pyrox <pyrox@pyrox.dev> | 2024-04-24 14:41:17 -0400 |
---|---|---|
committer | Pyrox <pyrox@pyrox.dev> | 2024-04-24 14:42:16 -0400 |
commit | ae359d1ef24a2d1d816404159787ca836ac9f551 (patch) | |
tree | d69d5b609915628b8837312f23e1c0d8f8e28c9c /nixos/modules/services/monitoring/prometheus/exporters/collectd.nix | |
parent | 9d9758f5486afa3abe89a2e1c2baaa4e542929b3 (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/collectd.nix')
-rw-r--r-- | nixos/modules/services/monitoring/prometheus/exporters/collectd.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/nixos/modules/services/monitoring/prometheus/exporters/collectd.nix b/nixos/modules/services/monitoring/prometheus/exporters/collectd.nix index 339eb8c3f5f46..6f4c936fd4093 100644 --- a/nixos/modules/services/monitoring/prometheus/exporters/collectd.nix +++ b/nixos/modules/services/monitoring/prometheus/exporters/collectd.nix @@ -1,9 +1,15 @@ { config, lib, pkgs, options, ... }: -with lib; - let cfg = config.services.prometheus.exporters.collectd; + inherit (lib) + mkOption + mkEnableOption + types + optionalString + concatStringsSep + escapeShellArg + ; in { port = 9103; |