networking.extraHosts vs networking.hosts

In the manual networking.extraHosts is just an example of how a multiline string is used in nix, the wiki is unofficial and is mostly done by people adding stuff that resolved their problems and not really what’s recommended.

The only real difference other than the syntax is that networking.hosts entries have a higher priority than the ones in networking.extraHosts.

3 Likes