diff options
author | Alexander Ried <ried@mytum.de> | 2016-10-19 00:09:49 +0200 |
---|---|---|
committer | Alexander Ried <ried@mytum.de> | 2016-10-20 20:17:17 +0200 |
commit | 57d9c69c6a96c60b4db8cb08522d33e2ba6e9fbc (patch) | |
tree | 564653fe36f062bb74b0f72c6a3a0286e57af6a1 /nixos | |
parent | 11cbeda6751b4a85700cfb696ecd813bbc0bf4f5 (diff) |
supplicant: fix wants and wantedBy
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/networking/supplicant.nix | 3 | ||||
-rw-r--r-- | nixos/modules/services/networking/wpa_supplicant.nix | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/supplicant.nix b/nixos/modules/services/networking/supplicant.nix index e433ec7c5b9b..0c459fb1dd0c 100644 --- a/nixos/modules/services/networking/supplicant.nix +++ b/nixos/modules/services/networking/supplicant.nix @@ -34,7 +34,8 @@ let ''; in { description = "Supplicant ${iface}${optionalString (iface=="WLAN"||iface=="LAN") " %I"}"; - wantedBy = [ "network.target" ] ++ deps; + wantedBy = [ "multi-user.target" ] ++ deps; + wants = [ "network.target" ]; bindsTo = deps; after = deps; before = [ "network.target" ]; diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix index a344d7855463..5657b91c1e72 100644 --- a/nixos/modules/services/networking/wpa_supplicant.nix +++ b/nixos/modules/services/networking/wpa_supplicant.nix @@ -128,9 +128,11 @@ in { in { description = "WPA Supplicant"; - after = [ "network.target" ] ++ lib.concatMap deviceUnit ifaces; + after = lib.concatMap deviceUnit ifaces; + before = [ "network.target" ]; + wants = [ "network.target" ]; requires = lib.concatMap deviceUnit ifaces; - wantedBy = [ "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; path = [ pkgs.wpa_supplicant ]; |