From 31b1f0782db5cd0b2e8951ddc39bd808676daf4d Mon Sep 17 00:00:00 2001 From: Mynacol Date: Tue, 25 Nov 2025 21:41:00 +0000 Subject: [PATCH] nixos/wpa_supplicant: ignore shellcheck nitpick This can occur if one enables `systemd.enableStrictShellChecks`. Shellcheck itself writes on this notice that one should use arrays in this situation. I tried to do that, but the curly braces with nix variable expansion gets boring very quickly. As such, we just ignore this nitpick, as the use is reasonable here. https://www.shellcheck.net/wiki/SC2086 Also enable `enableStrictShellChecks` to avoid regressing. --- nixos/modules/services/networking/wpa_supplicant.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index 79bba0314d84..5bcc5e5c38d8 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -183,8 +183,10 @@ let } # finally start daemon + # shellcheck disable=SC2086 exec wpa_supplicant $args ''; + enableStrictShellChecks = true; }; systemctl = "/run/current-system/systemd/bin/systemctl";