From 0724d0d2f9957b80c6ac07feaa57547c1ba2070b Mon Sep 17 00:00:00 2001 From: genofire Date: Wed, 27 Oct 2021 01:35:00 +0200 Subject: [PATCH] nixos: improve wifi iwd random and thresholds --- nixos/desktop.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/nixos/desktop.nix b/nixos/desktop.nix index 2ac1851..260d496 100644 --- a/nixos/desktop.nix +++ b/nixos/desktop.nix @@ -1,6 +1,23 @@ { pkgs, ... }: { - networking.wireless.iwd.enable = true; + networking.wireless.iwd = { + enable = true; + settings = { + General = { + AddressRandomization = "network"; + # EnableNetworkConfiguration = false; + + RoamThreshold = -70; + RoamThreshold5G = -90; + RoamRetryInterval = 10; + }; + # Network.EnableIPv6 = true; + + Rank.BandModifier5Ghz = 5.0; + # Scan.DisablePeriodicScan = true; + }; + }; + systemd.network.networks.wifi = { matchConfig.Name = "wlan0"; DHCP = "ipv4";