nixos/modules/desktop/network.nix
2023-08-12 02:13:50 +02:00

16 lines
590 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ 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
# enabled but a different service is responsible for managing the systems
# 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;
}