Unverified Commit ae359d1e authored by Pyrox's avatar Pyrox
Browse files

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.
parent 9d9758f5
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
{ config, lib, pkgs, options, ... }:

with lib;

let
  cfg = config.services.prometheus.exporters.apcupsd;
  inherit (lib) mkOption types concatStringsSep;
in
{
  port = 9162;
+1 −2
Original line number Diff line number Diff line
{ config, lib, pkgs, options, ... }:

with lib;

let
  cfg = config.services.prometheus.exporters.artifactory;
  inherit (lib) mkOption types concatStringsSep;
in
{
  port = 9531;
+1 −2
Original line number Diff line number Diff line
{ config, lib, pkgs, options, ... }:

with lib;

let
  cfg = config.services.prometheus.exporters.bind;
  inherit (lib) mkOption types concatStringsSep;
in
{
  port = 9119;
+6 −2
Original line number Diff line number Diff line
{ config, lib, pkgs, options, ... }:

with lib;

let
  cfg = config.services.prometheus.exporters.bird;
  inherit (lib)
    mkOption
    types
    concatStringsSep
    singleton
    ;
in
{
  port = 9324;
+1 −2
Original line number Diff line number Diff line
{ config, lib, pkgs, options, ... }:

with lib;

let
  cfg = config.services.prometheus.exporters.bitcoin;
  inherit (lib) mkOption types concatStringsSep;
in
{
  port = 9332;
Loading