diff --git a/modules/services/networking/dhclient.nix b/modules/services/networking/dhclient.nix index fe118fb320e..2bc0b333a6f 100644 --- a/modules/services/networking/dhclient.nix +++ b/modules/services/networking/dhclient.nix @@ -40,23 +40,6 @@ in { - ###### interface - - options = { - - networking.useDHCP = mkOption { - default = true; - merge = mergeEnableOption; - description = " - Whether to use DHCP to obtain an IP adress and other - configuration for all network interfaces that are not manually - configured. - "; - }; - - }; - - ###### implementation config = mkIf config.networking.useDHCP { diff --git a/modules/services/networking/dhcpcd.nix b/modules/services/networking/dhcpcd.nix index 465802e6b48..f80aac9bdc4 100644 --- a/modules/services/networking/dhcpcd.nix +++ b/modules/services/networking/dhcpcd.nix @@ -39,23 +39,6 @@ in { - ###### interface - - options = { - - networking.useDHCP = mkOption { - default = true; - merge = mergeEnableOption; - description = " - Whether to use DHCP to obtain an IP adress and other - configuration for all network interfaces that are not manually - configured. - "; - }; - - }; - - ###### implementation config = mkIf config.networking.useDHCP { diff --git a/modules/tasks/network-interfaces.nix b/modules/tasks/network-interfaces.nix index e13fbff0ce6..b9c5d897295 100644 --- a/modules/tasks/network-interfaces.nix +++ b/modules/tasks/network-interfaces.nix @@ -163,6 +163,16 @@ in }; + networking.useDHCP = mkOption { + default = true; + merge = mergeEnableOption; + description = '' + Whether to use DHCP to obtain an IP adress and other + configuration for all network interfaces that are not manually + configured. + ''; + }; + };