@@ -125,10 +125,12 @@ in {
125125 # FIXME: start a separate wpa_supplicant instance per interface.
126126 systemd.services.wpa_supplicant = let
127127 ifaces = cfg.interfaces;
128+ deviceUnit = interface: [ "sys-subsystem-net-devices-${interface}.device" ];
128129 in {
129130 description = "WPA Supplicant";
130131
131132 after = [ "network-interfaces.target" ];
133+ requires = lib.concatMap deviceUnit ifaces;
132134 wantedBy = [ "network.target" ];
133135
134136 path = [ pkgs.wpa_supplicant ];