diff options
author | Michele Guerini Rocco <rnhmjoj@users.noreply.github.com> | 2024-04-21 16:06:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 16:06:57 +0200 |
commit | 23fc571cc3513eb43fcc8b711639adb088e016b1 (patch) | |
tree | bd8aab86f657e7042a912f0cde1859af110a40b0 /nixos/modules | |
parent | b87790536d7151d6fef61bc9362bafb0ce8b1445 (diff) | |
parent | 4d2f457f6e02a08c9a6e8b879236facd8dd15fd7 (diff) |
Merge pull request #305649 from rnhmjoj/pr-fix-wpa-aux
nixos/wireless: create empty config for imperative setup
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/networking/wpa_supplicant.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index c9dd1d1b0f01f..2804e3ecf1770 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -124,6 +124,11 @@ let fi ''} + # ensure wpa_supplicant.conf exists, or the daemon will fail to start + ${optionalString cfg.allowAuxiliaryImperativeNetworks '' + touch /etc/wpa_supplicant.conf + ''} + # substitute environment variables if [ -f "${configFile}" ]; then ${pkgs.gawk}/bin/awk '{ |