From 635ecd802fd1928db0b33b396744b620c7b82ffe Mon Sep 17 00:00:00 2001 From: Valentin Shirokov Date: Fri, 28 Jul 2017 00:15:17 +0300 Subject: Deprecation warning for networking.extraHosts --- nixos/modules/config/networking.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules/config/networking.nix') diff --git a/nixos/modules/config/networking.nix b/nixos/modules/config/networking.nix index 3a643943d3d4..055e45e4a51a 100644 --- a/nixos/modules/config/networking.nix +++ b/nixos/modules/config/networking.nix @@ -199,6 +199,9 @@ in config = { + warnings = optional (cfg.extraHosts != "") + "networking.extraHosts is deprecated, please use networking.hosts instead"; + environment.etc = { # /etc/services: TCP/UDP port assignments. "services".source = pkgs.iana-etc + "/etc/services"; -- cgit 1.4.1