This repository has no description
1.2 kB
40 lines
1{
2 self,
3 pkgs,
4 ...
5}:
6{
7
8 networking.networkmanager = {
9 enable = true;
10 unmanaged = [
11 "docker*"
12 "vboxnet*"
13 ];
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 };
28 systemd.services.NetworkManager-wait-online.enable = false;
29 users.users.mainUser = {
30 extraGroups = [ "networkmanager" ];
31 packages = with pkgs; [
32 gnome-keyring
33 dconf
34 ];
35 };
36 environment.systemPackages = [
37 self.packages.${pkgs.system}.nm-dmenu
38 pkgs.wirelesstools
39 ];
40}