···124 fi
125 ''}
12600000127 # substitute environment variables
128 if [ -f "${configFile}" ]; then
129 ${pkgs.gawk}/bin/awk '{
···124 fi
125 ''}
126127+ # ensure wpa_supplicant.conf exists, or the daemon will fail to start
128+ ${optionalString cfg.allowAuxiliaryImperativeNetworks ''
129+ touch /etc/wpa_supplicant.conf
130+ ''}
131+132 # substitute environment variables
133 if [ -f "${configFile}" ]; then
134 ${pkgs.gawk}/bin/awk '{
+24
nixos/tests/wpa_supplicant.nix
···113 };
114 };
115000000000000000116 # Test connecting to the SAE-only hotspot using SAE
117 machineSae = machineWithHostapd {
118 networking.wireless = {
···184 status = basic.succeed("wpa_cli -i wlan1 status")
185 assert "Failed to connect" not in status, \
186 "Failed to connect to the daemon"
000000000187188 machineSae.wait_for_unit("hostapd.service")
189 machineSae.copy_from_vm("/run/hostapd/wlan0.hostapd.conf")