networking.hosts

NixOS option

Locally defined maps of hostnames to IP addresses.

type: attribute set of list of string
Default
{ }
Example
{
  "127.0.0.1" = [ "foo.bar.baz" ];
  "192.168.0.2" = [ "fileserver.local" "nameserver.local" ];
};
declared in: nixos/modules/config/networking.nixView source on NixOS/nixpkgs →