This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

2configs.network-manager: let NM own wifi, not networkd

Mark wlan links unmanaged by systemd-networkd so NetworkManager is
the sole wifi DHCP client. With networking.useNetworkd enabled, the
auto-generated 40-<iface>.network ran a second DHCP client on the
wifi; the two fought over the lease and routes and dropped the link
every few minutes. Match by Type=wlan so it holds across interface
renames.

+13
+13
2configs/network-manager.nix
··· 12 12 "vboxnet*" 13 13 ]; 14 14 }; 15 + 16 + # NetworkManager is the sole wifi manager on NM hosts. The base 17 + # config enables systemd-networkd (networking.useNetworkd), which otherwise 18 + # ALSO runs a DHCP client on the wifi through the auto-generated 19 + # 40-<iface>.network. Two DHCP clients on one link fight over the lease and 20 + # routes and drop the connection every few minutes (networkd logged a 21 + # "DHCP lease lost"/"acquired" cycle on the wifi every ~10-20 min). Match 22 + # by Type=wlan (not interface name) and sort before 40-* so networkd leaves 23 + # every wifi link to NetworkManager, immune to the wlp192s0<->wlan0 rename. 24 + systemd.network.networks."10-wifi-unmanaged" = { 25 + matchConfig.Type = "wlan"; 26 + linkConfig.Unmanaged = true; 27 + }; 15 28 systemd.services.NetworkManager-wait-online.enable = false; 16 29 users.users.mainUser = { 17 30 extraGroups = [ "networkmanager" ];