kminion: format source

Signed-off-by: Christina Sørensen <ces@fem.gg>

Changed files
+37 -25
nixos
modules
services
monitoring
prometheus
exporters
pkgs
by-name
km
kminion
+31 -20
nixos/modules/services/monitoring/prometheus/exporters/kafka.nix
···
-
{ config, lib, pkgs, ... }:
+
{
+
config,
+
lib,
+
pkgs,
+
...
+
}:
let
cfg = config.services.prometheus.exporters.kafka;
···
types
concatStringsSep
;
-
in {
+
in
+
{
port = 8080;
extraOpts = {
···
'';
};
};
-
serviceOpts = mkMerge ([{
-
serviceConfig = {
-
ExecStart = ''
-
${lib.getExe cfg.package}
-
'';
-
EnvironmentFile = mkIf (cfg.environmentFile != null) cfg.environmentFile;
-
RestartSec = "5s";
-
RestrictAddressFamilies = [
-
"AF_INET"
-
"AF_INET6"
-
];
-
};
-
}] ++ [
-
(mkIf config.services.apache-kafka.enable {
-
after = [ "apache-kafka.service" ];
-
requires = [ "apache-kafka.service" ];
-
})
-
]);
+
serviceOpts = mkMerge (
+
[
+
{
+
serviceConfig = {
+
ExecStart = ''
+
${lib.getExe cfg.package}
+
'';
+
EnvironmentFile = mkIf (cfg.environmentFile != null) cfg.environmentFile;
+
RestartSec = "5s";
+
RestrictAddressFamilies = [
+
"AF_INET"
+
"AF_INET6"
+
];
+
};
+
}
+
]
+
++ [
+
(mkIf config.services.apache-kafka.enable {
+
after = [ "apache-kafka.service" ];
+
requires = [ "apache-kafka.service" ];
+
})
+
]
+
);
}
+6 -5
pkgs/by-name/km/kminion/package.nix
···
-
{ lib
-
, stdenv
-
, fetchFromGitHub
-
, buildGoModule
-
, nixosTests
+
{
+
lib,
+
stdenv,
+
fetchFromGitHub,
+
buildGoModule,
+
nixosTests,
}:
buildGoModule {