networking.extraHosts

NixOS option

Additional verbatim entries to be appended to /etc/hosts. For adding hosts from derivation results, use networking.hostFiles instead.

type: strings concatenated with "\n"
Default
""
Example
"192.168.0.1 lanlocalhost"
declared in: nixos/modules/config/networking.nixView source on NixOS/nixpkgs →