diff options
author | Valentin Shirokov <regellosigkeitsaxiom@yandex.ru> | 2017-07-28 00:15:17 +0300 |
---|---|---|
committer | Valentin Shirokov <regellosigkeitsaxiom@yandex.ru> | 2017-07-28 00:15:17 +0300 |
commit | 635ecd802fd1928db0b33b396744b620c7b82ffe (patch) | |
tree | 1078e56c9bfd3d70f94b2da8796f06d9dd802f3a /nixos/modules/config/networking.nix | |
parent | d29fc731b3d97959331322d2ff787e665e7d6342 (diff) |
Deprecation warning for networking.extraHosts
Diffstat (limited to 'nixos/modules/config/networking.nix')
-rw-r--r-- | nixos/modules/config/networking.nix | 3 |
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"; |