nixos/modules/desktop/network.nix
2023-08-25 00:57:42 +02:00

18 lines
726 B
Nix

{ lib, ... }: {
networking = {
# It's a little too much to define every WiFi network declaratively.
# Instead, we enable NetworkManager and the nmtui interface.
networkmanager = {
enable = true;
dns = lib.mkForce "none";
};
};
# systemd-networkd-wait-online can timeout and fail if there are no
# network interfaces available for it to manage. When systemd-networkd is
# enabled but a different service is responsible for managing the system's
# internet connection (for example, NetworkManager), this service is unnecessary and can be disabled.
# https://search.nixos.org/options?channel=23.05&show=systemd.network.wait-online.enable
systemd.network.wait-online.enable = false;
}