diff options
author | Robin Gloster <mail@glob.in> | 2019-09-24 11:41:12 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2019-09-24 11:44:01 +0200 |
commit | 5ee383ea8c31cd7c8489c2b076aac9c51f63b55c (patch) | |
tree | 8adfc40bc7583bbf0475f8d4949d4806a8945e7a /nixos/modules/installer/tools/tools.nix | |
parent | e862dd637350ddd1812a6c1fb5811c6464e74ff5 (diff) | |
download | nixlib-5ee383ea8c31cd7c8489c2b076aac9c51f63b55c.tar nixlib-5ee383ea8c31cd7c8489c2b076aac9c51f63b55c.tar.gz nixlib-5ee383ea8c31cd7c8489c2b076aac9c51f63b55c.tar.bz2 nixlib-5ee383ea8c31cd7c8489c2b076aac9c51f63b55c.tar.lz nixlib-5ee383ea8c31cd7c8489c2b076aac9c51f63b55c.tar.xz nixlib-5ee383ea8c31cd7c8489c2b076aac9c51f63b55c.tar.zst nixlib-5ee383ea8c31cd7c8489c2b076aac9c51f63b55c.zip |
nixos-generate-config: add useDHCP per interface
This sets networking.useDHCP to false and for all interfaces found the per-interface useDHCP to true. This replicates the current default behaviour and prepares for the switch to networkd.
Diffstat (limited to 'nixos/modules/installer/tools/tools.nix')
-rw-r--r-- | nixos/modules/installer/tools/tools.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix index 05add59117d1..329260059598 100644 --- a/nixos/modules/installer/tools/tools.nix +++ b/nixos/modules/installer/tools/tools.nix @@ -96,6 +96,7 @@ in # networking.hostName = "nixos"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. + $networkingDhcpConfig # Configure network proxy if necessary # networking.proxy.default = "http://user:password\@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; |