From 519673e7145ea1e54afc54bc501b53bab226c94b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benno=20F=C3=BCnfst=C3=BCck?= <benno.fuenfstueck@gmail.com> Date: Thu, 16 Jun 2016 00:18:41 +0200 Subject: [PATCH] wpa_supplicant: start after wireless interfaces wpa_supplicant fails to start if the wireless interfaces aren't ready yet, so we need to add a system ordering directive here to start wpa_supplicant after the interfaces are ready. Note that Requires= is not enough since it does not imply ordering. --- nixos/modules/services/networking/wpa_supplicant.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index 53648aef1e04..8d22c10d3f78 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -129,7 +129,7 @@ in { in { description = "WPA Supplicant"; - after = [ "network-interfaces.target" ]; + after = [ "network-interfaces.target" ] ++ lib.concatMap deviceUnit ifaces; requires = lib.concatMap deviceUnit ifaces; wantedBy = [ "network.target" ];