summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nixos/modules/services/networking/i2pd.nix14
1 files changed, 14 insertions, 0 deletions
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. <command>i2pd</command> defaults to "info"
+          but that generates copious amounts of log messages.
+
+          We default to "error" which is similar to the default log
+          level of <command>tor</command>.
+        '';
+      };
+
       address = mkOption {
         type = with types; nullOr str;
         default = null;