Skip to content

Commit

Permalink
Fix unstable Wi-Fi on NixOS (#711)
Browse files Browse the repository at this point in the history
* Install iw in Linux

* Disable wifi power_save to fix unstable Wi-Fi
  • Loading branch information
kachick authored Aug 1, 2024
1 parent 8fcecd6 commit f6772f6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions home-manager/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ with pkgs;
openssh

iputils # `ping` etc

# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/iw/iw/package.nix
edge-pkgs.iw # replacement of wireless-tools(iwconfig)
])
++ (lib.optionals stdenv.isDarwin [
# https://github.com/NixOS/nixpkgs/issues/240819
Expand Down
12 changes: 10 additions & 2 deletions nixos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit f6772f6

Please sign in to comment.