nixos: improve wifi iwd random and thresholds
This commit is contained in:
		
							parent
							
								
									ec816b0ebe
								
							
						
					
					
						commit
						0724d0d2f9
					
				| 
						 | 
					@ -1,6 +1,23 @@
 | 
				
			||||||
{ pkgs, ... }:
 | 
					{ 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 = {
 | 
						systemd.network.networks.wifi = {
 | 
				
			||||||
		matchConfig.Name = "wlan0";
 | 
							matchConfig.Name = "wlan0";
 | 
				
			||||||
		DHCP = "ipv4";
 | 
							DHCP = "ipv4";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue