summary refs log tree commit diff
path: root/nixos/modules/services/networking/wpa_supplicant.nix
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2017-09-27 23:20:08 +0200
committerFranz Pletz <fpletz@fnordicwalking.de>2017-09-27 23:38:03 +0200
commit725dee203a88f26e38912e73e832caa3ab73447e (patch)
tree95a242d40fd0324505f9dc10b9be186dbbfe6cdf /nixos/modules/services/networking/wpa_supplicant.nix
parent4a2442032ee5bc06f225bd5666b0f6813026b42f (diff)
downloadnixpkgs-725dee203a88f26e38912e73e832caa3ab73447e.tar
nixpkgs-725dee203a88f26e38912e73e832caa3ab73447e.tar.gz
nixpkgs-725dee203a88f26e38912e73e832caa3ab73447e.tar.bz2
nixpkgs-725dee203a88f26e38912e73e832caa3ab73447e.tar.lz
nixpkgs-725dee203a88f26e38912e73e832caa3ab73447e.tar.xz
nixpkgs-725dee203a88f26e38912e73e832caa3ab73447e.tar.zst
nixpkgs-725dee203a88f26e38912e73e832caa3ab73447e.zip
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.
Diffstat (limited to 'nixos/modules/services/networking/wpa_supplicant.nix')
-rw-r--r--nixos/modules/services/networking/wpa_supplicant.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/wpa_supplicant.nix b/nixos/modules/services/networking/wpa_supplicant.nix
index c91ba91fcb4..908c8730ad2 100644
--- a/nixos/modules/services/networking/wpa_supplicant.nix
+++ b/nixos/modules/services/networking/wpa_supplicant.nix
@@ -148,6 +148,7 @@ in {
       wants = [ "network.target" ];
       requires = lib.concatMap deviceUnit ifaces;
       wantedBy = [ "multi-user.target" ];
+      stopIfChanged = false;
 
       path = [ pkgs.wpa_supplicant ];