Browse Source

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

svn path=/nixos/branches/modular-nixos/; revision=16258
nsd-state-dir
Ludovic Courtès 14 years ago
parent
commit
fa9f557b96
  1. 3
      modules/config/networking.nix

3
modules/config/networking.nix

@ -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";

Loading…
Cancel
Save