about summary refs log tree commit diff
path: root/nixos/modules/config/networking.nix
diff options
context:
space:
mode:
authorValentin Shirokov <regellosigkeitsaxiom@yandex.ru>2017-07-28 00:15:17 +0300
committerValentin Shirokov <regellosigkeitsaxiom@yandex.ru>2017-07-28 00:15:17 +0300
commit635ecd802fd1928db0b33b396744b620c7b82ffe (patch)
tree1078e56c9bfd3d70f94b2da8796f06d9dd802f3a /nixos/modules/config/networking.nix
parentd29fc731b3d97959331322d2ff787e665e7d6342 (diff)
downloadnixlib-635ecd802fd1928db0b33b396744b620c7b82ffe.tar
nixlib-635ecd802fd1928db0b33b396744b620c7b82ffe.tar.gz
nixlib-635ecd802fd1928db0b33b396744b620c7b82ffe.tar.bz2
nixlib-635ecd802fd1928db0b33b396744b620c7b82ffe.tar.lz
nixlib-635ecd802fd1928db0b33b396744b620c7b82ffe.tar.xz
nixlib-635ecd802fd1928db0b33b396744b620c7b82ffe.tar.zst
nixlib-635ecd802fd1928db0b33b396744b620c7b82ffe.zip
Deprecation warning for networking.extraHosts
Diffstat (limited to 'nixos/modules/config/networking.nix')
-rw-r--r--nixos/modules/config/networking.nix3
1 files changed, 3 insertions, 0 deletions
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";