mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
23 lines
486 B
Nix
23 lines
486 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (builtins) toJSON toString;
|
|
inherit (lib.options) mkOption;
|
|
inherit (lib.types) port;
|
|
cfg = config.services.promtail;
|
|
in {
|
|
options.services.promtail.settings = {
|
|
httpListenPort = mkOption {
|
|
type = port;
|
|
description = "Port to listen on over HTTP";
|
|
default = 9094;
|
|
};
|
|
};
|
|
config.services.promtail = {
|
|
extraFlags = [
|
|
"--server.http-listen-port=${toString cfg.settings.httpListenPort}"
|
|
];
|
|
};
|
|
}
|