diff options
author | Alex Auvolat <alex@adnab.me> | 2023-03-17 18:21:50 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-03-17 18:21:50 +0100 |
commit | 90efd9155b4e2014b75133ff123893fb0478c025 (patch) | |
tree | e012c32f12544351f21091541614364327bd817e /nix | |
parent | 39254cca0ea74ca7c84c3de3f85102dbf4d39f44 (diff) | |
download | nixcfg-90efd9155b4e2014b75133ff123893fb0478c025.tar.gz nixcfg-90efd9155b4e2014b75133ff123893fb0478c025.zip |
wgautomesh variable log level (debug for staging)
Diffstat (limited to 'nix')
-rw-r--r-- | nix/wgautomesh.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nix/wgautomesh.nix b/nix/wgautomesh.nix index e46ad75..5a1480c 100644 --- a/nix/wgautomesh.nix +++ b/nix/wgautomesh.nix @@ -14,6 +14,11 @@ in { options.services.wgautomesh = { enable = mkEnableOption "wgautomesh"; + logLevel = mkOption { + type = types.str; + default = "info"; + description = "wgautomesh log level (trace/debug/info/warn/error)"; + }; interface = mkOption { type = types.str; description = "Wireguard interface to manage"; @@ -97,7 +102,7 @@ in enable = true; path = [ pkgs.wireguard-tools ]; environment = { - RUST_LOG = "wgautomesh=info"; + RUST_LOG = "wgautomesh=${cfg.logLevel}"; }; description = "wgautomesh"; serviceConfig = { |