From a7df2a5d2496c7c2f424975bf702259d8f331c6f Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Thu, 1 Aug 2024 15:59:55 +0900 Subject: [PATCH] Disable wifi power_save to fix unstable Wi-Fi --- nixos/configuration.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 7ea7c81f..f2fa9956 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -45,8 +45,16 @@ # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; - # Enable networking - networking.networkmanager.enable = true; + # https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/networking/networkmanager.nix + networking.networkmanager = { + enable = true; + + # https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/networking/networkmanager.nix#L261-L289 + wifi = { + # https://github.com/kachick/dotfiles/issues/663#issuecomment-2262189168 + powersave = false; + }; + }; # Set your time zone. time.timeZone = "Asia/Tokyo";