Passer wgautomesh en prod #9

Merged
lx merged 11 commits from wgautomesh into main 2023-03-24 11:05:29 +00:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit 90efd9155b - Show all commits

View file

@ -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

View file

@ -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 = {