nixos/modules/desktop/network.nix

16 lines
588 B
Nix
Raw Normal View History

2023-08-12 02:13:50 +02:00
{ lib, ... }: {
networking = {
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
2023-08-13 19:36:49 +02:00
# enabled but a different service is responsible for managing the system's
2023-08-12 02:13:50 +02:00
# 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;
}