From af5de701b7ea5e97e43ffee4de250dbcbf3b244c Mon Sep 17 00:00:00 2001 From: SLNOS Date: Sat, 1 Jul 2017 00:00:00 +0000 Subject: nixos: i2pd: add logLevel --- nixos/modules/services/networking/i2pd.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nixos/modules/services/networking/i2pd.nix b/nixos/modules/services/networking/i2pd.nix index a6e7cd2d2e1..16c247a3a04 100644 --- a/nixos/modules/services/networking/i2pd.nix +++ b/nixos/modules/services/networking/i2pd.nix @@ -72,6 +72,8 @@ let i2pdConf = pkgs.writeText "i2pd.conf" '' + loglevel = ${cfg.logLevel} + ipv4 = ${boolToString cfg.enableIPv4} ipv6 = ${boolToString cfg.enableIPv6} notransit = ${boolToString cfg.notransit} @@ -176,6 +178,18 @@ in ''; }; + logLevel = mkOption { + type = types.enum ["debug" "info" "warn" "error"]; + default = "error"; + description = '' + The log level. i2pd defaults to "info" + but that generates copious amounts of log messages. + + We default to "error" which is similar to the default log + level of tor. + ''; + }; + address = mkOption { type = with types; nullOr str; default = null; -- cgit 1.4.1