feat(nix-module): add signal server log level option

Signed-off-by: Adam Rizkalla <ajarizzo@gmail.com>
This commit is contained in:
Adam Rizkalla
2025-04-02 22:50:53 +00:00
committed by Steffen Vogel
parent 4143015520
commit d6b0ff31fb

View File

@@ -44,6 +44,12 @@ in
type = lib.types.bool;
default = false;
};
loglevel = lib.mkOption {
description = "Log level";
type = lib.types.str;
default = "info";
};
};
relay = {
@@ -192,7 +198,7 @@ in
User = "cunicu";
Group = "cunicu";
ExecStart =
"${lib.getExe cfg.package} signal "
"${lib.getExe cfg.package} signal --log-level ${cfg.signal.loglevel} "
+ lib.cli.toGNUCommandLineShell { } { inherit (cfg.signal) secure listen; };
# Hardening