From fd711cd2489e8a079c6070f81417126bf929d401 Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Fri, 5 Jun 2026 14:00:49 +0200 Subject: [PATCH] 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. --- nixos/modules/services/networking/wpa_supplicant.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index 0e092de5e609..46ec64b0a334 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -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