summary refs log tree commit diff
path: root/nixos/modules/services/networking/networkmanager.nix
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2017-12-01 14:58:06 +0100
committerAndreas Rammhold <andreas@rammhold.de>2017-12-10 00:19:15 +0100
commit104de603cba1b499984ec268bb782c7147e91d7a (patch)
tree904da9a571078d5915319bd3446264641b02dcb7 /nixos/modules/services/networking/networkmanager.nix
parentb687ffa0d246b913699b8e2b2f0e1ffb370ada17 (diff)
downloadnixpkgs-104de603cba1b499984ec268bb782c7147e91d7a.tar
nixpkgs-104de603cba1b499984ec268bb782c7147e91d7a.tar.gz
nixpkgs-104de603cba1b499984ec268bb782c7147e91d7a.tar.bz2
nixpkgs-104de603cba1b499984ec268bb782c7147e91d7a.tar.lz
nixpkgs-104de603cba1b499984ec268bb782c7147e91d7a.tar.xz
nixpkgs-104de603cba1b499984ec268bb782c7147e91d7a.tar.zst
nixpkgs-104de603cba1b499984ec268bb782c7147e91d7a.zip
networkmanager: remove restart after suspend from resume
In commit ec9dc73 restarting NetworkManager after resume from
suspend/hibernate was introduced.

When I initially switch to NixOS I started noticing a high delay between
wakeup and re-connecting to WiFi & wired networks. The delay increased
from a few seconds (on my previous distro, same software stack) to
almost half a minute with NixOS.

I (locally) applied the change in this commit a few weeks ago and tested
since then. The notebook/mobile device experience has improved a lot.
Reconnects are as before switching to NixOS.

Issue #24401 could be related to this. Since I am not using KDE/plasma5
I can only guess…
Diffstat (limited to 'nixos/modules/services/networking/networkmanager.nix')
-rw-r--r--nixos/modules/services/networking/networkmanager.nix4
1 files changed, 0 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix
index 6bdae32f72b..d9ac4b0f274 100644
--- a/nixos/modules/services/networking/networkmanager.nix
+++ b/nixos/modules/services/networking/networkmanager.nix
@@ -333,10 +333,6 @@ in {
       wireless.enable = lib.mkDefault false;
     };
 
-    powerManagement.resumeCommands = ''
-      ${config.systemd.package}/bin/systemctl restart network-manager
-    '';
-
     security.polkit.extraConfig = polkitConf;
 
     services.dbus.packages = cfg.packages;