git.iko.soy/typeable/nixpkgs
on master help sign in
wpa_supplicant service: Depend on interfaces being present
commitdcae10ebdac761005c6ce3fc33ea6d958faa3bb0 authorFranz Pletz <fpletz@fnordicwalking.de> dateWed 2 Mar 2016, 19:04 (11 years ago) parent7ddf846
1 file changed+2
nixos/modules/services/networking/wpa_supplicant.nix+2
nixos/modules/services/networking/wpa_supplicant.nix+2
@@ -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 ];