Add `localhost' under its "real" host name to /etc/hosts.
svn path=/nixos/branches/modular-nixos/; revision=16258
This commit is contained in:
parent
a62e1cf2dd
commit
fa9f557b96
@ -41,6 +41,9 @@ in
|
|||||||
source = pkgs.writeText "hosts"
|
source = pkgs.writeText "hosts"
|
||||||
''
|
''
|
||||||
${config.networking.extraHosts}
|
${config.networking.extraHosts}
|
||||||
|
${if config.networking.hostName != ""
|
||||||
|
then "127.0.0.1 ${config.networking.hostName}"
|
||||||
|
else ""}
|
||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
'';
|
'';
|
||||||
target = "hosts";
|
target = "hosts";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user