Networking: Difference between revisions

imported>DavHau
No edit summary
imported>Klaymore
Added hosts file section
Line 1: Line 1:
This site provides snippets for configuring your network ''just right'' for the use case you are looking for. All configuration is for <code>configuration.nix</code>
This site provides snippets for configuring your network ''just right'' for the use case you are looking for. All configuration is for <code>configuration.nix</code>
== Hosts file ==
To edit <code>/etc/hosts</code> just add something like this to your <code>configuration.nix</code>:
<syntaxhighlight lang="nix">
networking.extraHosts = ''
    127.0.0.2 other-localhost
    10.0.0.1 server
  '';
</syntaxhighlight>


= IPv6 =
= IPv6 =