git.iko.soy/typeable/nixpkgs
on master help sign in
wpa_supplicant service: restart instead of stop & start

We now wait for dhcpcd to acquire a lease but dhcpcd is restarted on system activation. As wpa_supplicant is stopped while dhcpcd is restarting a significant delay is introduced on systems with wireless network connections only. This changes the wpa_supplicant service to also be restarted together with dhcpcd in case both services were changed.

commit725dee203a88f26e38912e73e832caa3ab73447e authorFranz Pletz <fpletz@fnordicwalking.de> dateWed 27 Sep 2017, 23:20 (9 years ago) parent4a24420
1 file changed+1
nixos/modules/services/networking/wpa_supplicant.nix+1
nixos/modules/services/networking/wpa_supplicant.nix+1
@@ -148,6 +148,7 @@ in {
148148 wants = [ "network.target" ];
149149 requires = lib.concatMap deviceUnit ifaces;
150150 wantedBy = [ "multi-user.target" ];
151+ stopIfChanged = false;
151152
152153 path = [ pkgs.wpa_supplicant ];
153154