nixos/hostapd: add logLevel option
This commit is contained in:
parent
c09c054231
commit
d6d0442243
@ -24,9 +24,9 @@ let
|
|||||||
|
|
||||||
# logging (debug level)
|
# logging (debug level)
|
||||||
logger_syslog=-1
|
logger_syslog=-1
|
||||||
logger_syslog_level=2
|
logger_syslog_level=${toString cfg.logLevel}
|
||||||
logger_stdout=-1
|
logger_stdout=-1
|
||||||
logger_stdout_level=2
|
logger_stdout_level=${toString cfg.logLevel}
|
||||||
|
|
||||||
ctrl_interface=/run/hostapd
|
ctrl_interface=/run/hostapd
|
||||||
ctrl_interface_group=${cfg.group}
|
ctrl_interface_group=${cfg.group}
|
||||||
@ -145,6 +145,19 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
logLevel = mkOption {
|
||||||
|
default = 2;
|
||||||
|
type = types.int;
|
||||||
|
description = ''
|
||||||
|
Levels (minimum value for logged events):
|
||||||
|
0 = verbose debugging
|
||||||
|
1 = debugging
|
||||||
|
2 = informational messages
|
||||||
|
3 = notification
|
||||||
|
4 = warning
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
countryCode = mkOption {
|
countryCode = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
example = "US";
|
example = "US";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user