Unverified Commit 8373b658 authored by Christina Sørensen's avatar Christina Sørensen Committed by Jonathan Davies
Browse files

kminion: format source



Signed-off-by: default avatarChristina Sørensen <ces@fem.gg>
parent 1dfbaec1
Loading
Loading
Loading
Loading
+31 −20
Original line number Diff line number Diff line
{ config, lib, pkgs, ... }:
{
  config,
  lib,
  pkgs,
  ...
}:

let
  cfg = config.services.prometheus.exporters.kafka;
@@ -9,7 +14,8 @@ let
    types
    concatStringsSep
    ;
in {
in
{
  port = 8080;

  extraOpts = {
@@ -24,7 +30,9 @@ in {
      '';
    };
  };
  serviceOpts = mkMerge ([{
  serviceOpts = mkMerge (
    [
      {
        serviceConfig = {
          ExecStart = ''
            ${lib.getExe cfg.package}
@@ -36,10 +44,13 @@ in {
            "AF_INET6"
          ];
        };
  }] ++ [
      }
    ]
    ++ [
      (mkIf config.services.apache-kafka.enable {
        after = [ "apache-kafka.service" ];
        requires = [ "apache-kafka.service" ];
      })
  ]);
    ]
  );
}
+6 −5
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchFromGitHub
, buildGoModule
, nixosTests
{
  lib,
  stdenv,
  fetchFromGitHub,
  buildGoModule,
  nixosTests,
}:

buildGoModule {