networking.useDHCP
NixOS option
Whether to use DHCP to obtain an IP address and other configuration for all network interfaces that do not have any manually configured IPv4 addresses.
type: booleanDefault
declared in: nixos/modules/tasks/network-interfaces.nixView source on NixOS/nixpkgs →true