nixos/wpa_supplicant: use lib.warn for warnings
In order to display these consistently with all other warnings and to abort on warnings correctly, lib.warn should be used instead of trace.
This commit is contained in:
@@ -564,9 +564,9 @@ in
|
||||
coercedTo attrs (
|
||||
val:
|
||||
if builtins.isAttrs val && val ? enable then
|
||||
trace "Obsolete option `networking.wireless.userControlled.enable' is used. It was renamed to networking.wireless.userControlled" val.enable
|
||||
warn "Obsolete option `networking.wireless.userControlled.enable' is used. It was renamed to networking.wireless.userControlled" val.enable
|
||||
else if builtins.isAttrs val && val ? group then
|
||||
trace
|
||||
warn
|
||||
"The option definition `networking.wireless.userControlled.group' no longer has any effect. The group is now fixed to `wpa_supplicant'."
|
||||
(val.enable or false)
|
||||
else if builtins.isBool val then
|
||||
|
||||
Reference in New Issue
Block a user