git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/hostapd: add logLevel option
commitd6d04422433dc031be0f6271fc594d68f4b01405 authorRicardo Ardissone <ricardo.ardissone@gmail.com> dateSun 3 May 2020, 22:39 (7 years ago) parentc09c054
1 file changed+15−2
nixos/modules/services/networking/hostapd.nix+15−2
nixos/modules/services/networking/hostapd.nix+15−2
@@ -24,9 +24,9 @@ let
2424
2525 # logging (debug level)
2626 logger_syslog=-1
27− logger_syslog_level=2
27+ logger_syslog_level=${toString cfg.logLevel}
2828 logger_stdout=-1
29− logger_stdout_level=2
29+ logger_stdout_level=${toString cfg.logLevel}
3030
3131 ctrl_interface=/run/hostapd
3232 ctrl_interface_group=${cfg.group}
@@ -145,6 +145,19 @@ in
145145 '';
146146 };
147147
148+ logLevel = mkOption {
149+ default = 2;
150+ type = types.int;
151+ description = ''
152+ Levels (minimum value for logged events):
153+ 0 = verbose debugging
154+ 1 = debugging
155+ 2 = informational messages
156+ 3 = notification
157+ 4 = warning
158+ '';
159+ };
160+
148161 countryCode = mkOption {
149162 default = null;
150163 example = "US";