diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-03-02 19:04:21 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-03-28 21:52:23 +0000 |
commit | dcae10ebdac761005c6ce3fc33ea6d958faa3bb0 (patch) | |
tree | cfae73a6dcc1c14fbc1fce679df98165f3c308ee /nixos/modules/services/networking/wpa_supplicant.nix | |
parent | 7ddf8460a52b0424c4823a21a1eac2c0749011b6 (diff) | |
download | nixlib-dcae10ebdac761005c6ce3fc33ea6d958faa3bb0.tar nixlib-dcae10ebdac761005c6ce3fc33ea6d958faa3bb0.tar.gz nixlib-dcae10ebdac761005c6ce3fc33ea6d958faa3bb0.tar.bz2 nixlib-dcae10ebdac761005c6ce3fc33ea6d958faa3bb0.tar.lz nixlib-dcae10ebdac761005c6ce3fc33ea6d958faa3bb0.tar.xz nixlib-dcae10ebdac761005c6ce3fc33ea6d958faa3bb0.tar.zst nixlib-dcae10ebdac761005c6ce3fc33ea6d958faa3bb0.zip |
wpa_supplicant service: Depend on interfaces being present
Diffstat (limited to 'nixos/modules/services/networking/wpa_supplicant.nix')
-rw-r--r-- | nixos/modules/services/networking/wpa_supplicant.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index a8f445a2c73c..53648aef1e04 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -125,10 +125,12 @@ in { # FIXME: start a separate wpa_supplicant instance per interface. systemd.services.wpa_supplicant = let ifaces = cfg.interfaces; + deviceUnit = interface: [ "sys-subsystem-net-devices-${interface}.device" ]; in { description = "WPA Supplicant"; after = [ "network-interfaces.target" ]; + requires = lib.concatMap deviceUnit ifaces; wantedBy = [ "network.target" ]; path = [ pkgs.wpa_supplicant ]; |