summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2016-06-16 00:18:41 +0200
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2016-06-16 00:22:08 +0200
commit519673e7145ea1e54afc54bc501b53bab226c94b (patch)
treedd503f580034ab0ca381bffdbca9a0332f9611ca /nixos/modules/services
parent41d523a8bc91767a47cdcede69037a3989cbf5aa (diff)
downloadnixlib-519673e7145ea1e54afc54bc501b53bab226c94b.tar
nixlib-519673e7145ea1e54afc54bc501b53bab226c94b.tar.gz
nixlib-519673e7145ea1e54afc54bc501b53bab226c94b.tar.bz2
nixlib-519673e7145ea1e54afc54bc501b53bab226c94b.tar.lz
nixlib-519673e7145ea1e54afc54bc501b53bab226c94b.tar.xz
nixlib-519673e7145ea1e54afc54bc501b53bab226c94b.tar.zst
nixlib-519673e7145ea1e54afc54bc501b53bab226c94b.zip
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.
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/networking/wpa_supplicant.nix2
1 files changed, 1 insertions, 1 deletions
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" ];