Skip to content

Commit

Permalink
wpa_supplicant service: restart instead of stop & start
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
fpletz committed Sep 27, 2017
1 parent 4a24420 commit 725dee2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/networking/wpa_supplicant.nix
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ in {
wants = [ "network.target" ];
requires = lib.concatMap deviceUnit ifaces;
wantedBy = [ "multi-user.target" ];
stopIfChanged = false;

path = [ pkgs.wpa_supplicant ];

Expand Down

0 comments on commit 725dee2

Please sign in to comment.