forked from Deuxfleurs/nixcfg
wgautomesh variable log level (debug for staging)
This commit is contained in:
parent
39254cca0e
commit
90efd9155b
2 changed files with 7 additions and 1 deletions
|
@ -44,6 +44,7 @@
|
||||||
endpoint = "bitfrost.fiber.shirokumo.net:33734";
|
endpoint = "bitfrost.fiber.shirokumo.net:33734";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
services.wgautomesh.logLevel = "debug";
|
||||||
|
|
||||||
# Bootstrap IPs for Consul cluster,
|
# Bootstrap IPs for Consul cluster,
|
||||||
# these are IPs on the Wireguard overlay
|
# these are IPs on the Wireguard overlay
|
||||||
|
|
|
@ -14,6 +14,11 @@ in
|
||||||
{
|
{
|
||||||
options.services.wgautomesh = {
|
options.services.wgautomesh = {
|
||||||
enable = mkEnableOption "wgautomesh";
|
enable = mkEnableOption "wgautomesh";
|
||||||
|
logLevel = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "info";
|
||||||
|
description = "wgautomesh log level (trace/debug/info/warn/error)";
|
||||||
|
};
|
||||||
interface = mkOption {
|
interface = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "Wireguard interface to manage";
|
description = "Wireguard interface to manage";
|
||||||
|
@ -97,7 +102,7 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
path = [ pkgs.wireguard-tools ];
|
path = [ pkgs.wireguard-tools ];
|
||||||
environment = {
|
environment = {
|
||||||
RUST_LOG = "wgautomesh=info";
|
RUST_LOG = "wgautomesh=${cfg.logLevel}";
|
||||||
};
|
};
|
||||||
description = "wgautomesh";
|
description = "wgautomesh";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
|
Loading…
Reference in a new issue