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: boolean
Default
true
declared in: nixos/modules/tasks/network-interfaces.nixView source on NixOS/nixpkgs →