From 57d9c69c6a96c60b4db8cb08522d33e2ba6e9fbc Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Wed, 19 Oct 2016 00:09:49 +0200 Subject: supplicant: fix wants and wantedBy --- nixos/modules/services/networking/wpa_supplicant.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nixos/modules/services/networking/wpa_supplicant.nix') 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 ]; -- cgit 1.4.1