1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

nixos: i2pd: add logLevel

This commit is contained in:
SLNOS 2017-07-01 00:00:00 +00:00 committed by Jan Malakhovski
parent 042329be5e
commit af5de701b7

View file

@ -72,6 +72,8 @@ let
i2pdConf = pkgs.writeText "i2pd.conf" i2pdConf = pkgs.writeText "i2pd.conf"
'' ''
loglevel = ${cfg.logLevel}
ipv4 = ${boolToString cfg.enableIPv4} ipv4 = ${boolToString cfg.enableIPv4}
ipv6 = ${boolToString cfg.enableIPv6} ipv6 = ${boolToString cfg.enableIPv6}
notransit = ${boolToString cfg.notransit} 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 { address = mkOption {
type = with types; nullOr str; type = with types; nullOr str;
default = null; default = null;