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;