Add `localhost' under its "real" host name to /etc/hosts.

svn path=/nixos/branches/modular-nixos/; revision=16258
This commit is contained in:
Ludovic Courtès 2009-07-08 16:10:09 +00:00
parent a62e1cf2dd
commit fa9f557b96

View File

@ -41,6 +41,9 @@ in
source = pkgs.writeText "hosts"
''
${config.networking.extraHosts}
${if config.networking.hostName != ""
then "127.0.0.1 ${config.networking.hostName}"
else ""}
127.0.0.1 localhost
'';
target = "hosts";